http://www.atutor.ca/atutor/mantis/view.php?id=2629
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Mon, 10 Jul 2006 18:01:15 +0000 (18:01 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Mon, 10 Jul 2006 18:01:15 +0000 (18:01 -0000)
docs/registration.php

index 22e71af..7af51dc 100644 (file)
@@ -100,9 +100,9 @@ if (isset($_POST['cancel'])) {
        $_POST['login'] = strtolower($_POST['login']);
 
        //check date of birth
-       $mo = intval($_POST['month']);
-       $day = intval($_POST['day']);
-       $yr = intval($_POST['year']);
+       $mo = $_POST['month'] = intval($_POST['month']);
+       $day = $_POST['day'] = intval($_POST['day']);
+       $yr = $_POST['year'] = intval($_POST['year']);
 
        /* let's us take (one or) two digit years (ex. 78 = 1978, 3 = 2003) */
        if ($yr <= date('y')) { 
@@ -216,6 +216,8 @@ if (isset($_POST['cancel'])) {
                require(AT_INCLUDE_PATH.'footer.inc.php');
                exit;
        }
+} else {
+       $_POST = array();
 }
 
 unset($_SESSION['member_id']);