i'm new to php and i have this submition form for the contact page and it's not seem to work or give me an error message.
this is the submition form:
<?php
$vars = array('First Name', 'Last Name', 'Home Phone', 'Fax', 'Mobile Phone', 'Email');
$texts = array('First Name', 'Last Name', 'Home Phone', 'Fax', 'Mobile Phone', 'Email');
$magic_quotes = get_magic_quotes_gpc();
$message = "<div dir=\"ltr\">\n";
for ($i=0; $i<count($vars); $i++) {
if ($magic_quotes) {
$POST[$vars[$i]] = stripslashes($POST[$vars[$i]]);
}
$message .= "<b>".htmlspecialchars($texts[$i]).":</b> ".htmlspecialchars($_POST[$vars[$i]])."<br />\n";
}
$message .= "</div>\n";
$to = 'J.B.H. <info@bh-j.com>';
$from = $POST['name'].' <'.$POST['email'].'>';
$subject = 'Contact Form from the Web-Site';
$headers = "Content-Type: text/html; charset=windows-1255\n";
$headers .= "From: {$from}\n";
mail($to, $subject, $message, $headers);
header('Location: contact.php');
die();
?>
please help me...