simple php form script not working??

just as the title says, i have a simple php form and it’s not working.
the user will fill out the form and it’ll take them to the php page(a white blank page) and do nothing.
i won’t receive an e-mail or anything.

heres the code…
[php]<?
if (isset($_POST[‘submit’]))
//if required fields filled out, send email
{
$thankyou = “thankyou.html” ;
$email = $_REQUEST[‘email’] ;
$name1 = $_REQUEST[‘name1’] ;
$name2 = $_REQUEST[‘name2’] ;
$address1 = $_REQUEST[‘address1’] ;
$address2 = $_REQUEST[‘address2’] ;
$city = $_REQUEST[‘city’] ;
$state = $_REQUEST[‘state’] ;
$zip = $_REQUEST[‘zip’] ;
$msg = “email: $email\nname1: $name1\nname2: $name2\naddress1: $address1\naddress2: $address2\ncity: $city\nstate: $state\nzip: $zip\n”;
mail("[email protected]", “TWC-KMF Form Submission”,
$msg, “From:” . $email);
header(‘Location: $thankyou’);
}
?>[/php]

Well, usually the “header” for an email has more in it, but, it looks like it should work.
What is is the “thankyou.html”??? And, why do you use this as a variable and not just in the redirect?

Not sure what you need… What error do you get, what is in the page that is displayed when the code switches to the “thankyou.html”??? What is in that file???

Sponsor our Newsletter | Privacy Policy | Terms of Service