ID:185732
 
<html>

<?php
$mailto = 'mike_boyd8@hotmail.com' ;
$subject = "Feedback Form" ;

$formurl = "http://www.westviewladychargers.com";
$errorurl = "http://wiw.com" ;
$thankyouurl = "http://www.wow.com" ;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$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?
What are you getting in terms of errors? Or lacking any error messages what does it do and what is/isn't it doing?
In response to DarkView (#1)
I get no errors, but nothing happens at all. Blank page, no information sent, nothing. I'm not entirely sure the webserver has php access so I wanted to see if my syntax was incorrect

I was also wondering, how would I redirect in php to a website.

[edit]
Nevermind I figured it out. It seems the server did not have php. Thanks anyway. Second question still wondering about though. kthnx.
In response to Soccerguy13 (#2)
Use the header function.
It's pretty simple. header("Location: http://www.example.com/"); Just make sure to do that before you output anything to the page.