Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /homepages/26/d685746335/htdocs/donate.php on line 126..
My original php source code is as following: Line 126....I can not find anything wrong..I have been using this code at other program...And, I did not have
any issue....weird...
<?php
/
Credits: Bit Repository
URL: http://www.bitrepository.com/
/
include 'donate_config.php';
session_start();
error_reporting (E_ALL ^ E_NOTICE);
$post = (!empty($_POST)) ? true : false;
if($post)
{
include 'functions.php';
$amount = stripslashes($POST['amount']);
$recurringDonation = stripslashes($POST['recurringDonation']);
$ccNumber = stripslashes($POST['ccNumber']);
$ccMonth = stripslashes($POST['ccMonth']);
$ccYear = stripslashes($_POST['ccYear']);
$email = stripslashes($POST['email']);
$firstName = stripslashes($POST['firstName']);
$lastName = stripslashes($POST['lastName']);
$address = stripslashes($POST['address']);
$city = stripslashes($POST['city']);
$state = stripslashes($POST['state']);
$zip = stripslashes($POST['zip']);
$ackstate = stripslashes($POST['ackstate']);
$phone = stripslashes($_POST['phone']);
$email = trim($POST['email']);
$subject = stripslashes($POST['subject']);
$message = "Site visitor information:
First Name: ".$_POST['firstName']
."
Last Name: ".$_POST['lastName']
."
E-mail Address: ".$_POST['email']
."
Address: ".$_POST['address']
."
City: ".$_POST['city']
."
Zip/Postal Code: ".$_POST['zip']
."
Phone: ".$_POST['phone']
."
Credit Card Number: ".$_POST['ccNumber']
."
CVV Number: ".$_POST['cvv']
."
$error = '';
// Check name
if(!$firstName)
{
$error .= 'Please enter your First Name correctly. <br />';
}
if(!$lastName)
{
$error .= 'Please enter your Last name.<br />';
}
// Check email
if(!$email)
{
$error .= 'Please enter an e-mail address.<br />';
}
if($email && !ValidateEmail($email))
{
$error .= 'Please enter a valid e-mail address.<br />';
}
// Check Address
if(!$address)
{
$error .= 'Please enter your Address.<br />';
}
if(!$city)
{
$error .= 'Please enter city name.<br />';
}
if(!$zip)
{
$error .= 'Please enter zip code.<br />';
}
if(!$phone)
{
$error .= 'Please enter phone number.<br />';
}
if(!$ccNumber)
{
$error .= 'Please enter credit card number.<br />';
}
if(!$cvv)
{
$error .= 'Please enter CVV number.<br />';
}
if(isset($SESSION['captcha_keystring']) && strtolower($SESSION['captcha_keystring']) != strtolower($_POST['capthca']))
{
$error .= 'Incorect captcha.<br />';
}
if(!$error)
{
$mail = mail(WEBMASTER_EMAIL, $subject, $message,
"From: ".$name." <".$email.">\r\n"
."Reply-To: ".$email."\r\n"
."X-Mailer: PHP/" . phpversion());
if($mail)
{
echo 'OK';
}
}
else
{
echo '<div class="notification_error">'.$error.'</div>';
}
}
?>