Jump to content


This topic is now archived and is closed to further replies.


new page

Recommended Posts

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:
$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:

Share this post

Link to post
Share on other sites
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");

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.