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!! Quote 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? Quote 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"); } Quote 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) Quote Link to comment https://forums.phpfreaks.com/topic/115618-solved-sendmailphp/#findComment-594401 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.