I copied this process.php from a website but cannot get it to work as it comes up with parse error on line 12. Can someone help please.
*** COPY OF PROCESS.PHP BELOW ***
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
PHP Code:
<?php
// this sets up your email headers, just change the email address $headers = "From: "webmaster@MYWEBSITE.com\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n";
// this emails you the results of the form mail( "Webmaster@MYWEBSITE.com", "New Contact Message", print_r( $_POST, true),"$headers">
// this will redriect the user somewhere away from this page header("location: http://www.MYWEBSITE.com/thanks.html");
?>
</body>
</html>
thank you for your help
Last edited by mantona; 12-14-2007 at 08:00 PM..
|