ilikephp Posted July 19, 2008 Share Posted July 19, 2008 hi, I did a comments form, and below is the sendmail.php: <? $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; mail( "[email protected]", "Feedback Form Results", $message, "From: $email" ); header( "Location: http://test.test.org"); ?> when the send button is clicked, how can the thankyou.php will be opened? Thankyou!! Link to comment https://forums.phpfreaks.com/topic/115618-solved-sendmailphp/ Share on other sites More sharing options...
Goldeneye Posted July 19, 2008 Share Posted July 19, 2008 I don't quite understand what you are going for You want to open thankyou.php when the 'send' button is pressed? Link to comment https://forums.phpfreaks.com/topic/115618-solved-sendmailphp/#findComment-594358 Share on other sites More sharing options...
ignace Posted July 19, 2008 Share Posted July 19, 2008 if (mail(..)) { header("Location: thankyou.php"); } Link to comment https://forums.phpfreaks.com/topic/115618-solved-sendmailphp/#findComment-594366 Share on other sites More sharing options...
ilikephp Posted July 19, 2008 Author Share Posted July 19, 2008 Thanx... (Y) Link to comment https://forums.phpfreaks.com/topic/115618-solved-sendmailphp/#findComment-594401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.