sirborder
11-18-2006, 10:56 AM
I am really getting annoyed here. Could anybody help me figure out the problem?
Go to http://surfacehawaii.com/contactus.html
Fill out the form and submit.
See?
Here is the php code
<?php
if(isset($_POST['submit']))*{
*
$to*=*"caleb@surfacehawaii.com";
$subject*=*"Contact Form";
$name_field*=*$_POST['name'];
$email_field*=*$_POST['email'];
$message*=*$_POST['message'];
*
foreach($_POST['check']*as*$value)*{
$check_msg*.=*"Checked:*$value\n";
}
*
$body*=*"From:*$name_field\n*E-Mail:*$email_field\n*Message:\n*$message\n*$check_msg";*
mail($to,*$subject,*$body);*
if*(mail($to,*$subject,*$body))*//if*the*mails*sent
{*header(Location*:*"http://www.surfacehawaii.com/thanks.html");
}
//page*to*redirect*to*if*your*email*was*sent
else
{*echo*"Sorry.*Error*sending*message!";}*//show*that*email*could*not*be*sent**
?>
If anyone could help, that would be great.
Go to http://surfacehawaii.com/contactus.html
Fill out the form and submit.
See?
Here is the php code
<?php
if(isset($_POST['submit']))*{
*
$to*=*"caleb@surfacehawaii.com";
$subject*=*"Contact Form";
$name_field*=*$_POST['name'];
$email_field*=*$_POST['email'];
$message*=*$_POST['message'];
*
foreach($_POST['check']*as*$value)*{
$check_msg*.=*"Checked:*$value\n";
}
*
$body*=*"From:*$name_field\n*E-Mail:*$email_field\n*Message:\n*$message\n*$check_msg";*
mail($to,*$subject,*$body);*
if*(mail($to,*$subject,*$body))*//if*the*mails*sent
{*header(Location*:*"http://www.surfacehawaii.com/thanks.html");
}
//page*to*redirect*to*if*your*email*was*sent
else
{*echo*"Sorry.*Error*sending*message!";}*//show*that*email*could*not*be*sent**
?>
If anyone could help, that would be great.