function processStep2() { if (isset($_POST["submitButton"]) and $_POST["submitButton"] == "< Back") { displayStep1(); } else { displayStep3(); } }
function processStep2() { $_SESSION["gender"] = $_POST["gender"]; $_SESSION["favoriteWidget"] = $_POST["favoriteWidget"]; if (isset($_POST["submitButton"]) and $_POST["submitButton"] == "< Back") { displayStep1(); } else { displayStep3(); } }
<?php switch ($step) { case 1: displayStep1(); break; case 2: runChecks(2); displayStep2(); break; case 3: runChecks(3); setConfigValues(2); if ($_REQUEST['installtype'] != 'upgrade') { addDBTables(); } displayStep3(); break; case 4: setConfigValues(3); displayStep4(); break; case 5: displayComplete(); break; default: echo "Invalid Step"; break; } ?> <p> </p> </td>