function FLIPactive() { $currentActive = GETactive(); SETactive(!$currentActive); }
</form> </ul> </div> <?php } else { //If the user is logged in $_SESSION['loggedIn'] = TRUE; if ($_POST["startStop"] == "Start Vote") { //clear our previous votes, set numberOfChoices, and set status to active emptyVotingBox(); SETnumberOfChoices($_POST["howMany"]); SETactive(1); } else { if ($_POST["startStop"] == "Stop Vote") { //set status to inactive SETactive(0); } } ?> <div id="content"> <span class="graytitle">Number of choices:</span> <ul class="pageitem"> <!-- Changed into select wheel, can have an unlimited amount of <option> 's --> <form name="adminInput" action="admin.php" method="post"> <li class="select"><select name="howMany"> <?php for ($i = 2; $i <= 100; $i++) { // Auto-select the current number of choices