the error is
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in D:\Hosting\6509169\html\mail.php on line 14
could anyone tell me whats wrong with my code
#conash3D0 {
DISPLAY: none
}
Harry Potter Book 7 <?php
echo '
// Change below to the email address where you want to receive the message.
// (inside the quote marks ‘receive@yourdomain.com”)
$myemail = ‘billyf431@gmail.com’;
$from = ‘billyf431@gmail.com’;
$test = ‘billy431@live.ca’;
$to = ‘$email’;
$subject = ‘Harry Potter 7 Book Order’;
$subject2 = ‘Order recieved’;
$op = $_POST[op];
if($op == ‘contact’)
$name = stripslashes($_POST[name]);
$email = stripslashes($_POST[email]);
$phone = stripslashes($_POST[phone]);
$goderich = stripslashes($_POST[goderich]);
$kincardine = stripslashes($_POST[kincardine]);
if(!eregi(“^[_a-z0-9-]+(\.[_a-z0-9-]+)…
{
$status = “We’re sorry, but you’ve entered an incorrect email address.
“;
}
if(!$name)
{
$status .= “Please enter your name.
“;
}
if(ereg(“^[0-9]{3}-[0-9]{3}-[0-9]{4}$”… $phone)) {
echo “”;
}
else {
echo “invalid phonenumber
“;
}
if(!$status)
{
$header = “From: $email\r\nReply-To: $email\r\n”;
$header2 = “From: $myemail\r\nReply-To: $email\r\n”;
$message = ”
Name: $name
Email: $email
Phone Number: $phone
Goderich: $goderich
Kincardine: $kincardine
“;
$message2 = ”
$name we have received your order and will begin proccesing it immedianty
“;
if(mail($myemail, $subject, $message, $header))
if(mail($email, $subject2, $message2, $header2))
{
$status = “Thank you for your Order
“;
}
else
{
$status = “There was a problem sending your order, please try again later.
“;
}
}
else
{
$status .= “
Please press back on your browser to resubmit.
“;
}
}
$referer = $_SERVER[HTTP_REFERER];
if(!preg_match(‘#^http\\:\\/\\/[a-z0-9… $referer))
{
unset($referer);
}
?>
<FORM method=post action="”> Name:
E-mail
address:
Phone Number:
Store:
Goderich
Kincardine



Instead of “re-inventing the wheel”…
Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail… ) to work. Otherwise, no email can be sent.
PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_em…
Use any of the below sites to make the workable form you need:
For making forms:
These are really good online form makers. Just follow the instructions for making it and uploading file(s).
Contact Form Generator: http://www.tele-pro.co.uk/scripts/contac…
WYSIWYG Form Maker: http://www.jotform.com/?gclid=CNKhqei1wJ…http://www.thesitewizard.com/wizards/fee…
Ajax – Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxfo…http://www.phpform.org/http://www.thepcmanwebsite.com/form_mail…http://emailmeform.com/http://www.freecontactform.com/
If you use an editor that colors your syntax (Notepad++ does and it’s free), the error is glaringly obvious:
Harry Potter Book 7 < ?php echo '
echo ‘
should be
echo ‘
‘;
I saw so much pink after that line I almost went blind. (Pink is the quoted text color I use. The next 2 lines of comment were shown as quoted text.)