<?php if (!isset($_GET['resourceStepID'])) { echo "<div><p>You must supply a valid resource step ID.</p></div>"; } else { $resourceStepID = $_GET['resourceStepID']; $resourceStep = new ResourceStep(new NamedArguments(array('primaryKey' => $resourceStepID))); //get step name & group $stepName = $resourceStep->attributes['stepName']; $stepGroupID = $resourceStep->attributes['userGroupID']; $orderNum = $resourceStep->attributes['displayOrderSequence']; $remainingSteps = $resourceStep->getNumberOfOpenSteps(); //echo "the step name is ".$stepName.", and the group id is ". $stepGroup.".<br>\n"; //get possible groups $userGroupArray = array(); $userGroupObj = new UserGroup(); $userGroupArray = $userGroupObj->allAsArray(); //make form ?> <div id='div_resourceStepForm'> <form id='resourceStepForm'> <input type='hidden' name='editRSID' id='editRSID' value='<?php echo $resourceStepID; ?> '> <input type='hidden' name='orderNum' id='orderNum' value='<?php echo $orderNum; ?> '> <input type='hidden' name='currentGroupID' id='currentGroupID' value='<?php echo $stepGroupID;