Click to See Complete Forum and Search --> : php and html menu


DanSherry
07-14-2006, 02:04 PM
I am attempting to program an html menu for use with php mail program. Right now I have the menu list of states named "state". Is the following code right for the post?
<?

{
header ("Location: http://www.mmyconsulting.com/");
exit(0);
}

$recipients = "bill.monachino@mmyconsulting.com";

$email= $_POST['email'];

$message = "The following inquiry has been submitted...\n\n";
$message .= "Name: ".$_POST['name']."\n";
$message .= "Title: ".$_POST['title']."\n";
$message .= "Company: ".$_POST['company']."\n";
$message .= "Address: ".$_POST['address 1']."\n";
$message .= "Address2: ".$_POST['address2']."\n";
$message .= "City: ".$_POST['city']."\n";
$message .= "State: ".$_POST['state']."\n";
$message .= "Postal Code: ".$_POST['zip']."\n";
$message .= "Interested In: ".$_POST['direct_placement']."\n";
$message .= "Interested In: ".$_POST['staff_augmentation']"\n";
$message .= "Interested In: ".$_POST['consulting_project']"\n\n";

$message .= "Comments:\n".stripslashes($_POST['textarea']);

mail($recipients, "MMY Consulting Inquiry", $message,
"From: $email\r\n"
."X-Mailer: PHP/" . phpversion());

header ("Location: http://www.mmyconsulting.com/thank_you.html");
exit(0);


?>



Will it pick up the value and transmit it in the e-mail?
Will this script even work?
Thanks in advance!
Dan

the tree
07-14-2006, 02:49 PM
Have you considered testing the script yourself?

DanSherry
07-14-2006, 02:54 PM
I don't have the proper programs installed.

DanSherry
07-14-2006, 03:00 PM
I guess my question is, if I put the values in as the state name, abbrieviation wil the script, as written, transmit the value?
Thanks,
Dan