Hi,
I have a website that requires users to sign up and receive a verification email. Well, currently, when a new user signs up, they are getting this error:
Parse error: parse error, unexpected '<' in /home/templeof/public_html/signup_go.php on line 75
Here is the code for the page that is supposed to send the verification mail:
<?
include_once "class.DBConn.php";
include_once "class.Forms.php";
$form = new Form();
$conn = new DBConn();
switch($form->ReqVarName)
{
case "fname": $mesaj = "First name is required."; break;
case "lname": $mesaj = "Last name is required."; break;
case "address": $mesaj = "Streed address is required."; break;
case "city": $mesaj = "City is required."; break;
case "state": $mesaj = "State is required."; break;
case "phone": $mesaj = "Phone No. is required."; break;
case "zip": $mesaj = "Zip code is required."; break;
case "email": $mesaj = "A valid email address is required."; break;
case "username": $mesaj = "Username is required."; break;
case "password": $mesaj = "Password is required."; break;
case "cfmpassword": $mesaj = "Password confirm is required"; break;
case "refcode": $mesaj = "Referer code is required";break;
default : $mesaj = "";break;
}
if ( !empty($mesaj) )
{
$mesaj = "<tr><td colspan=\"3\" align=\"center\" style=\"color:red\">$mesaj</td></tr>";
include "signup.php";
exit (0);
}
if ( strcmp($_POST['password'], $_POST['cfmpassword']) !=0 && empty($mesaj) )
{
$mesaj = "Passwords do not match";
$form->ReqVarName = "cfmpassword";
}
if ( strlen($_POST['password']) < 5 && empty($mesaj) )
{
$mesaj = "Password is too short. Minimum 5 characters.";
$form->ReqVarName = "password";
}
$link = $conn->DBStart();
$isAlready = mysql_query("SELECT id FROM users WHERE username = '".$_POST['username']."' ");
if ( mysql_num_rows($isAlready) > 0 )
{
$mesaj = "This username is alreasy taken.";
$form->ReqVarName = "email";
}
if ( !empty($mesaj) )
{
$mesaj = "<tr><td colspan=\"3\" align=\"center\" style=\"color:red\">$mesaj</td></tr>";
include "signup.php";
exit (0);
}
else
{
$query = "INSERT INTO users VALUES ('', '".$_POST['fname']."', '".$_POST['lname']."', '".$_POST['address']."', '".$_POST['city']."'
, '".$_POST['state']."', '".$_POST['phone']."', '".$_POST['zip']."', '".$_POST['email']."'
, '".$_POST['imid']."', '".$_POST['username']."', '".md5($_POST['password'])."', '".date("Y-m-d")."'
, '".$_POST['gtag']."', '".$_POST['psp']."','' , '".$_POST['refcode']."'
, 0, 0, 0, 0, 0, 0, 0)";
if ( mysql_query( $query ) )
{
include("send_mail_html.php");
$sendto = $_POST['email'];
$subject = "Registration at TempleOfGames.com";
$message = "welcome";
<html xmlns="http://www.w3.org/1999/xhtml">
<head
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
If you can help me be able to register new memebers and have them receive an email verification, I will paypal you $30 instantly or put $40 towards the JDRF charity (ron Santo's Foundaton) in your name.
Thanks,
Greg