Contact Form Help with location?

this is my mailer.php page

[code]<?php
if(isset($_POST[‘submit’])) {

$to = "[email protected]"; 
$subject = "Contact Form";
$name = $_POST['name'];
$email = $_POST['email'];
$department = $_POST['department'];
$domain= $_POST['domain'];
$message = $_POST ['message'];


foreach($_POST as $value) {
	$check_msg .= "Checked: $valuen";
}

$body = "
From: $namen 
email: $emailn 
department: $departmentn 
domain: $domainn
message: $messagen
"

;

mail($to, $subject, $body);

}
header( ‘Location: thankyou.html’ );[/code]

and my html page says this

[code]








   
Name :  
E-Mail Address :  
Department : Sales Billing Support Other

 
Domain Name :

 
Questions :

 

[/code]

but it doesnt work any reason?

Thankyou

Please read the Posting Guidelines. We’re not PHP-We-will-fix-your-script.com. Also try the Debugging topic elsewhere on this forum.

Sponsor our Newsletter | Privacy Policy | Terms of Service