form to email problem here!!!!!
Posted: Sat Sep 08, 2007 9:12 am
hi i have a problem with my form to email script,its not working dunno why please kindly take a look
if theres a problem can someone please give me a script i can use & i want to insert my php script into my html script where do i place it[/syntax]
Code: Select all
<?php
$msg = "Below is an Informaiton from a visitor from your website.
\n\n";
$msg .= "Full Name: $_POST[full_name]\n";
$msg .= "Full Address: $_POST[full_address]\n";
$msg .= "Date of Birth: $_POST[date_of_birth]\n";
$msg .= "Telephone: $_POST[home_telephone]\n";
$msg .= "Fax Number: $_POST[fax_number]\n";
$msg .= "Nationality: $_POST[nationality]\n";
$msg .= "Occupation: $_POST[occupation]\n";
$meg .= "Company: $_POST[company]\n";
$msg .= "Email Address: $_POST[email_address]\n";
$meg .= "General Information: $_POST[S1]\n";
$email = $_POST[email];
//set up the mail
$subject = "Application";//$_POST[subject];
$recipient = //$_POST[recipient];
$mailheaders = " $email";
$mailheaders .= "Reply-To: $_POST[email]";
//send the mail
mail($recipient, $subject, $msg, $mailheaders);
location ("");
?>