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]