Dear ".$_POST["fname"].",

"; $message.="You have successfully registered with Hope and Harlequin.

"; $message.="Click on the link below or copy & paste the url in browser to activate your account.
"; $message.="".$websiteurl."activateaccount.php?activate=".$activationcode.""; $message.="

Regards
Hope and Harlequin"; $mail1 = new PHPMailer(); $mail1->Mailer = "smtp"; $mail1->Host = $adminhost; $mail1->SMTPAuth = true; $mail1->Username = $adminemail; $mail1->Password = $adminpass; $mail1->From = $adminemail; $mail1->FromName = $adminfrom; $mail1->Subject = "Hope and Harlequin : Account Activation"; $mail1->IsHTML(true); $mail1->Body = $message; $mail1->AddAddress($_POST["email"]); if ($mail1->Send()){ $mail1->ClearAddresses(); $registermsg="
You have successfully registered with
' Hope and Harlequin '
Check your email to activate your account.
"; header('refresh: 10; url=index.php'); } else { $registererr="
Error sending activation mail.
Please contact admin to activate your account.
"; } } else { $registererr="
Username / Email already taken.
"; } } $loginmsg=""; $loginerr=""; if ($_POST["loginsubmit"]=="Login"){ $qrylogin=mysql_query("select * from customers where activated=\"Yes\" and email=\"".$_POST["email"]."\" and password=\"".$_POST["password"]."\"") or die("Error : ".mysql_error()); if (mysql_num_rows($qrylogin)>=1){ $rowlogin=mysql_fetch_array($qrylogin); session_register("sessioncid","sessionid"); $_SESSION["sessioncid"]=$rowlogin["cid"]; $_SESSION["sessionid"]=session_id(); $loginmsg="Login Successful.
Continue Shopping..."; header('refresh: 3; url=index.php'); } else { $loginerr="
Wrong username or password.
"; } } $qrypage=mysql_query("select * from sitepages where pageid=\"1\"") or die("Error : ".mysql_error()); $rowpage=mysql_fetch_array($qrypage); ?>
I am New Customer.
If you haven't already registered with us, complete the fields below to create an account. Then click 'Register' to complete.
Email *
Password *
Confirm Password *
First Name *
Last Name
Telephone *
Address 1 *
Address 2
State / County
Postal Code *
Country *
/>   Subscribe to Hope & Harelquin Newsletters/Emails ?
(We will never give out your email address to others)
I am Existing Customer.
Email *
Password *