jennaramondo
MIS
Hi there,
I am having trouble with my website. I'm a beginner with Dreamweaver so simplified answers are much appreciated. When you click 'send' on the contact form (which was created with a php file) it comes up with the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/kerrikin/public_html/mail.php on line 32
My code for the php file - I have noted line 32 in BOLD (note, this isn't actually written in my code):
I am having trouble with my website. I'm a beginner with Dreamweaver so simplified answers are much appreciated. When you click 'send' on the contact form (which was created with a php file) it comes up with the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/kerrikin/public_html/mail.php on line 32
My code for the php file - I have noted line 32 in BOLD (note, this isn't actually written in my code):
Code:
<body>
"<?php
//variables (change these)
$youremail = "test@hotmail.com";
// your email address
$subject = "Website Email";
// the subject of the email
$thankyou = "thankyou.html";
// thank you page
// don't change anything else
;if($email == ""){
?>
No email address added. Please go back.<br/>
"<?php
;}elseif($name == ""){
"?>
No name added. Please go back.<br/>
<?php
;}elseif($message == ""){
[b]"?>[/b]
No message added. Please go back.<br/>
"<?php
;}else{
$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "from: $name\nemail: $email\nmessage:\n$msg1";
mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
?>
<meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">
"<?php
}
"?>
</body>
</html>