hiatus Posted October 16, 2006 Share Posted October 16, 2006 have a form on a web page and want another html page to pop up after they hit submit. Instead of just a statement "your data has been sent"maybe that statement but in a html page, How do I get this next page, i want to come up after they hit submit.what code do I need i tried using "fopen"here part of it:.......yadayada$body = "From: $name\n $apartment\n $telephone\n E-Mail:\n $email Message:\n $message";$file=fopen ("www.fertilizethoughts.com/contact3.php ");mail($to, $subject, $body);} else...........this is the form:http://www.fertilizethoughts.com/contact2.php Link to comment https://forums.phpfreaks.com/topic/24151-new-page/ Share on other sites More sharing options...
trillion Posted October 17, 2006 Share Posted October 17, 2006 there are a number of ways to do this.One way is a redirect after mailform.php sends the mail and before it produces any output.redirect to next.php:header("Location: http://www.fertilizethoughts.com/next.php"); Link to comment https://forums.phpfreaks.com/topic/24151-new-page/#findComment-109832 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.