Contact Form Error
Official Review - Contact
See when you try send, it comes up with an error
This is the form.php file:
<?php $goto_after_mail = "thanks.html"; // this is the page which is shown after the mail is submitted $from_mail = $_REQUEST['Email']; $from_name = $_REQUEST['Name']; // use both value's from your form $header = "From: \"$from_name\" <$from_mail>\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: text/plain; charset=\"utf-8\"\r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n"; $subject = "Website Form Submission".date("d-m-Y"); //your mailsubject incl. current date foreach ($_REQUEST as $key => $val) { if ($key != "from_email" && $key != "from_name") { //skip, this values are already in the header $body .= $key . " : " . $val . "\r\n"; } } if (mail("matt@official-review.org", $subject, $body, $header)) { header("Location: ".$goto_after_mail); } ?> |
Chill.
Chill.
Chill.
Chill.
Chill.