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 Quote Link to comment 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"); Quote Link to comment 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.