0) { foreach ($_POST as $name=>$value) { if ($value == "") { $$name = "NOT SET"; $errors = $errors + 1; $error = "Not all fields filled in!"; } else { $$name = $value; } } } else { $errors = $errors + 1; } $error = ""; if (isset($_POST['new_password'])) { $new_password = $_POST['new_password']; if (strlen($new_password) < 6) { $error = "The password you have chosen is too short. It needs to be at least 6 characters long."; $errors = $errors + 1; } if (preg_match('/[^A-Za-z0-9]/i', $new_password)) { $error = "Your password contains a non-alphanumeric character."; $errors = $errors + 1; } if (!preg_match('/[0-9]/i', $new_password)) { $error = "Your password does not contain a number."; $errors = $errors + 1; } } /* echo "Errors = " . $errors; */ if ($errors <= "0") { /* send the email */ /* recipients */ $to = "support@intra-connect.net"; /* subject */ $subject = "[INTRA-CONNECT SUPPORT] Change Account Password "; $subject .= date("F j, Y, g:i a"); /* message */ $message = "User Account Name : " . $remote_user . "\n"; $message .= "Email Address : " . $email_address . "\n"; $message .= "New Password : " . $change_request . "\n"; /* To send HTML mail, you can set the Content-type header. */ /* $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; */ /* additional headers */ $headers .= "From:" . $email_address . "\r\n"; /* $headers .= "Cc: birthdayarchive@example.com\r\n"; */ /* $headers .= "Bcc: birthdaycheck@example.com\r\n"; */ /* and now mail it */ mail($to, $subject, $message, $headers); $message_confirm = "REQUEST FORM CONFIRMATION\n-------------------------------\n\nWe have received your request form and will respond back within 24 hours. Thank you for your patience.\n\nSincerely,\nIntra-Connect Support\nsupport@intra-connect.net\n"; mail($email_address, "[INTRA-CONNECT SUPPORT] We have received your request form", $message_confirm, "From:Intra-Connect Support "); $complete = "Your message has been sent."; } else { $complete = ""; } ?> Intra-Connect.net :: Your full service internet solution provider.
Change Account Password Request Form

0) { ?>
 
Fill out the form below and click submit:

 
Confirmation Email Address  
New Password  
(Remember your password must contain a number and NOT contain any non-alphanumeric charaters except a hyphen.)




Your Request has been sent.