require_once("../../includes/init.php"); ?> session_start(); ?> require_once("$FILE_ROOT/includes/layout/header.php"); ?> $db = initdb(); require_once("$FILE_ROOT/includes/functions/form_validation.php"); $code = isset($_GET['code']) ? $_GET['code'] : "enter_data"; switch($code) { case "enter_data": $confirmation_key = $_GET['ckey']; list($login_name_error, $password_error, $confirm_password_error) = array_fill(0,3,false); $login_name = ""; list($user_id, $first_name, $last_name) = $db->fetch_results($db->runQuery("SELECT user_id, first_name, last_name " . "FROM user_list WHERE confirmation_key='$confirmation_key'")); break; case "error": list($user_id, $login_name) = array_values($_SESSION['form_data']); list($login_name_error, $password_error, $confirm_password_error) = array_values($_SESSION['form_errors']); break; } ?> if($code != "error") { ?>
Use the form below to enter a login name and password for this site. Your login name can be anything you wish it to be, but passwords must contain both letters and numbers and be at least eight characters long. If you are not =$first_name?> =$last_name?>, then please contact the web master for assistance.
} else { ?>There were one or more problems with information that you entered on the previous screens. The form has be re-printed below along with error messages to help you solve these problems. Remember passwords must have both letters and numbers and be at least eight characters long.
} ?> require_once("$FILE_ROOT/includes/layout/footer.php"); ?>