php problems in Off Topic
|
|
<html>
<?php $mailto = 'mike_boyd8@hotmail.com' ; $subject = "Feedback Form" ;
$formurl = "http://www.westviewladychargers.com"; $errorurl = "http://wiw.com" ; $thankyouurl = "http://www.wow.com" ;
$name = $_POST['Request_Name'] ; $email = $_POST['Request_Email'] ; $comments = $_POST['Request_Comments'] ; $http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['Request_Email'])) { exit ; } if (empty($name) || empty($email) || empty($comments)) { exit ; } $name = strtok( $name, "\r\n" ); $email = strtok( $email, "\r\n" ); if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); }
$messageproper =
"This message was sent from:\n" . "$http_referrer\n" . "$email\n" . "------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\r\nReply-To: \"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
exit ;
?> </html>
|
This doesnt seem to work for me. Is there anything wrong with it syntax wise?
|