0) { $error = "The email address you entered is already a registered user."; $error.= "
CLICK HERE TO LOGIN
"; } } if (!$error) { $postal_code = str_replace(" ","", $postal_code); if ($country == "US") { $postal_code = substr($postal_code,0,5); } $q = "INSERT into OG_accounts set firstname='$firstname',lastname='$lastname',phone='$phone',address='$address',address2='$address2',city='$city',state='$state',canada_state='$canada_state',international_state='$international_state',postal_code='$postal_code',password='$password',email='$email',country='$country',create_date=NOW(),lastlogindate=NOW()"; mysql_query($q); $accounts_id = mysql_insert_id(); $logged_id = $accounts_id; $time = time()+60*60*24*30*12; setcookie("OGaccess_cookie",$accounts_id,$time,"/"); $htmlmessage="
\n"; $htmlmessage.="

\n"; $htmlmessage.="\n"; $htmlmessage.="

\n"; $htmlmessage.="Dear $firstname $lastname,

Thank you for your interest in OG WINGZ. Please find below the email and password you have selected to register with the site.

Your email is $email
Your password is $password

\n"; $textmessage = "Dear $firstname $lastname,\n\nThank you for your interest in OG WINGZ. Please find below the email and password you have selected to register with the site.\n\nYour email is $email\nYour password is $password\n\n"; $htmlmessage.="

Click here to visit OG WINGZ\n"; $htmlmessage.="

\n"; $htmlmessage.="
\n"; $mail = new PHPMailer; $mail->setFrom('info@ogwingz.com', 'OG WINGZ'); $mail->addAddress($email, "$firstname $lastname"); $mail->Subject = "Account Information for OG WINGZ"; $mail->Body = $htmlmessage; $mail->AltBody = $textmessage; $mail->send(); header("Location: register_complete.php"); exit(); } } include_once("topnav.inc"); ?>

Register

(We respect your privacy. Under no circumstance will we ever sell or disclose your email address or identity to any third party.)


Email
Company
First Name
Last Name
Phone
Address Line 1
Address Line 2
Country
City
State
Postal Code
Select Password
Confirm Password