Contact Form Help with location?

this is my mailer.php page

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


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

Domain Name :

Questions :



but it doesnt work any reason?


Please read the Posting Guidelines. We’re not Also try the Debugging topic elsewhere on this forum.

Sponsor our Newsletter | Privacy Policy | Terms of Service