- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
December 31, 2010 at 3:10 pm #30789PeretzMMember
Can anyone help me figure out why this php isnt working:
$email = '
';
$subject = '
';
$message =
"Name of School/Group: ".$_POST."
Address: ".$_POST."
City: ".$_POST."
State: ".$_POST."
Zip: ".$_POST."
Contact Name: ".$_POST."
Position: ".$_POST."
Email Address: ".$_POST."
Phone Number: ".$_POST."
cell: ".$_POST."
Group 1 Preference 1 Date: ".$_POST."
Group 1 Preference 1 Time: ".$_POST."
Group 1 Preference 2 Date: ".$_POST."
Group 1 Preference 2 Time: ".$_POST."
Group 1 Ages: ".$_POST."
Group 1 Children: ".$_POST."
Group 1 Teachers: ".$_POST."
Group 2 Preference 1 Date: ".$_POST."
Group 2 Preference 1 Time: ".$_POST."
Group 2 Preference 2 Date: ".$_POST."
Group 2 Preference 2 Time: ".$_POST."
Group 2 Ages: ".$_POST."
Group 2 Children: ".$_POST."
Group 2 Teachers: ".$_POST."
Group 3 Preference 1 Date: ".$_POST."
Group 3 Preference 1 Time: ".$_POST."
Group 3 Preference 2 Date: ".$_POST."
Group 3 Preference 2 Time: ".$_POST."
Group 3 Ages: ".$_POST."
Group 3 Children: ".$_POST."
Group 3 Teachers: ".$_POST."
Comments: ".$_POST.";
$headers = "MIME-Version: 1.0rn";
if (mail($email,$subject,$message,$headers)) {
header("location: onsubmit.html");
}
else {
echo "Sorry, an error has occured, please try again.";
}
?>
The specific error I’m getting is:
“Parse error: syntax error, unexpected T_STRING in /home/content/S/h/m/Shmulyg/html/sendmail.php on line 39”Thanks in advance!
December 31, 2010 at 11:44 pm #67972cybershotParticipant$emial = ”
“;should probably read $email = “your email address”;
$subject = ”
“;you need to add a subject to between the quotes
January 1, 2011 at 7:43 am #67987TT_MarkMemberIt has nothing to do with what @cybershot says. You are simply leaving your ” open, something which should be quite obvious with syntax highlighting. The line
Comments: ".$_POST.";
should be
Comments: ".$_POST;
January 1, 2011 at 11:43 am #68026clokey2kParticipantI have stared at this code a few times myself. At no point did I see the reopened ” at the end…
January 1, 2011 at 8:07 pm #67899 -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Back End’ is closed to new topics and replies.