eday_2010
03-06-2007, 06:13 PM
I am trying to get a simple form mail script to work, with no luck so far. I came across a basic version of the below script and modified it for my use. However, it's giving me a 500 Internal Error. Here is my php script:
<?
if ($_POST["Submit"]){
if ($_POST["Name"] and $_POST["Address"] and $_POST["Apt_Suite"] and $_POST["City"] and $_POST["Province"] and $_POST["Postal_Code"] and $_POST["Phone"] and $_POST["Email"] and $_POST["Publication_Title"] and $_POST["#_Copies_English"] and $_POST["#_Copies_French"] and $_POST["Details"]){
mail (
"eday2010@gmail.com",
"Publication Order Request (EN)",
"
Name: ".$_POST['Name']."
Address: ".$_POST['Address']."
Apt/Suite: ".$_POST['Apt_Suite']."
City: ".$_POST['City']."
Province or Territory: ".$_POST['Province']."
Postal Code: ".$_POST['Postal_Code']."
Phone: ".$_POST['Phone']."
E-mail: ".$_POST['Email']."
Publication Title: ".$_POST['Publication_Title']."
# of English Copies: ".$_POST['#_Copies_English']."
# of French Copies: ".$_POST['#_Copies_French']."
Details/Comments: ".$_POST['Details']."
",
"From: ".$_POST['Name']." <".$_POST['Email'].">");
header("Location: http://www.wnstudios.ca/en/thankyou2.html");
exit();
}
?>
And the actual form is here: http://www.wnstudios.ca/en/order-commandez.html
Any ideas? I can't find anything in the error log.
<?
if ($_POST["Submit"]){
if ($_POST["Name"] and $_POST["Address"] and $_POST["Apt_Suite"] and $_POST["City"] and $_POST["Province"] and $_POST["Postal_Code"] and $_POST["Phone"] and $_POST["Email"] and $_POST["Publication_Title"] and $_POST["#_Copies_English"] and $_POST["#_Copies_French"] and $_POST["Details"]){
mail (
"eday2010@gmail.com",
"Publication Order Request (EN)",
"
Name: ".$_POST['Name']."
Address: ".$_POST['Address']."
Apt/Suite: ".$_POST['Apt_Suite']."
City: ".$_POST['City']."
Province or Territory: ".$_POST['Province']."
Postal Code: ".$_POST['Postal_Code']."
Phone: ".$_POST['Phone']."
E-mail: ".$_POST['Email']."
Publication Title: ".$_POST['Publication_Title']."
# of English Copies: ".$_POST['#_Copies_English']."
# of French Copies: ".$_POST['#_Copies_French']."
Details/Comments: ".$_POST['Details']."
",
"From: ".$_POST['Name']." <".$_POST['Email'].">");
header("Location: http://www.wnstudios.ca/en/thankyou2.html");
exit();
}
?>
And the actual form is here: http://www.wnstudios.ca/en/order-commandez.html
Any ideas? I can't find anything in the error log.