email_addr, $str, $new_email)) { $new_email = trim(strtolower($new_email)); $result = mysql_query("update user set email_addr='$new_email' where id=$user->id"); if ($result) { echo "Email address change verified"; } else { echo "Verification failed due to database error. Please try again later."; } } else { $user = null; } } else { echo "User not found"; } if (!$user) { echo "We weren't expecting a verification of this account's email address. Please request the change again."; } page_tail(); ?>