255 ? "too_long" : false); $errors['password'] = strlen($password)<=0 ? "missing" : (len_escaped($password)>255 ? "too_long" : false); $errors['confirm_password'] = strlen($confirm_password)<=0 ? "missing" : ($password != $confirm_password ? "no_match" : false); foreach($errors as $error) { if($error !== false) { // if we find a problem $_SESSION['form_data'] = array($user_id, $login_name); // send non-password data $_SESSION['form_errors'] = $errors; // and the errors within the data header("Location: confirm.php?code=error"); // to the originating page exit; // and halt execution here } } // if we're still executing this page, then the login name was good and the passwords match. thus we can // store that information in the database. since this data are all strings, they'll need to be escaped. require_once("$FILE_ROOT/includes/layout/header.php"); $login_name = escape_str($login_name); $password = escape_str($password); $db->runQuery("UPDATE user_list SET login_name=$login_name, pword=$password, confirmation_key=NULL, " . "activated_on=NOW() WHERE user_id=$user_id"); ?>

Account Active

Your login name and password choices have been saved in the database and your account is now active. When you need to, you may log into this site using the login form. If you have any questions about this process or have any trouble logging in, don't heistate to contact the web master for assistance.