// parse input here $func=$_POST['func']; #print "F: ".$func; if (! $func) { include "bin/info_form.php"; } if ($func == "save") { if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') { echo 'Incorrect verification code.'; } else { include "bin/parse_form.php"; include "bin/save_info.php"; } } if ($func == "e") { // edit Anniversary date section include "bin/get_date_info.php"; include "bin/info_form.php"; } if ($func == "u") { // update edited Aniversary date section include "bin/update_date.php"; } if ($func == "r") { include "bin/save_referrer_info.php"; include "bin/redirect.php"; } ?> |