Okay, I'm just not getting it. It doesn't appear to be different on the surface (it doesn't email anyone, but forwards to the thankyouurl). Here's what things look like now:
HTML:
...<snippage>...
<input type="radio" name="telephone" value="Telephone" /> Telephone
<input type="radio" name="email" value="Email" /> Email
<input type="radio" name="mail" value="Mail" /> Snail Mail
<input type="radio" name="fax" value="Fax" /> Fax
...<snip>...
PHP:
<?
/
/
// ------------- CONFIGURABLE SECTION ------------------------
// -------------------- END OF CONFIGURABLE SECTION ---------------
$name = $HTTP_POST_VARS['name'];
$last_name = $HTTP_POST_VARS['last_name'];
$address = $HTTP_POST_VARS['address'];
$address2 = $HTTP_POST_VARS['address2'];
$city = $HTTP_POST_VARS['city'];
$state = $HTTP_POST_VARS['state'];
$zip = $HTTP_POST_VARS['zip'];
$email = $HTTP_POST_VARS['email'];
$phone = $HTTP_POST_VARS['phone'];
$fax = $HTTP_POST_VARS['fax'];
$Telephone = $HTTP_POST_VARS['Telephone'];
$Email = $HTTP_POST_VARS['Email'];
$Mail = $HTTP_POST_VARS['Mail'];
$Fax = $HTTP_POST_VARS['Fax'];
$calltime = $HTTP_POST_VARS['calltime'];
$comments = $HTTP_POST_VARS['comments'];
$thankyouurl = "http://www.mywebsite.com/thank_you.htm";
$recipient = "me@myemail";
$subject = "Test form went through";
$mailbody.="Your contact page was filled out with the following information:\n\n";
$mailbody.="Name: name\n";
$mailbody.="Address: $address\n";
$mailbody.="Address: $address2\n";
$mailbody.="City, State Zip: $city, $state $zip\n";
$mailbody.="Email: $email\n";
$mailbody.="Phone: $phone\n\n";
$mailbody.="Fax: $fax\n\n";
$mailbody.="Best Method of Contact: $Telephone $Email $Mail $Fax\n\n";
$mailbody.="Best Time to Call: $calltime\n\n";
$mailbody.="Comments: $comments\n\n";
$thankbody="Dear $name,\n\n";
$thankbody.="Thank you for signing my guestbook. I will get working on the reports you requested right away, and I will be in contact with you shortly. Be sure to check out my Free Reports page for valuable information that could save you thousands of dollars on your next transaction. \n\n";
$thankbody.="Thank you for your interest,\n\n";
$thankbody.="me\n";
$thankbody.="me@myemail.com\n";
$thankbody.="http://www.mywebsite.com";
mail($recipient,$subject,$mailbody,"From: $email\nX-Mailer: PHP/" . phpversion());
mail($email, "Thank You",$thankbody,"From: me@myemail.com\nX-Mailer: PHP/" . phpversion());
header("location:$thankyouurl" );
?>