contact php form problem?

haas

New member
<?php

$mailTo = "[email protected]";
$mailFrom = $_POST['emailFrom'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$headers = "From:" . $_POST['name'];
header("Location: index.html#contact");

mail($mailTo, $subject, $message, $mailFrom, $headers);

?>

this is the code I used for my contact it doesn't seem to work did I do some ting wrong
 
Back
Top