Jump to content


Photo

new page


  • Please log in to reply
1 reply to this topic

#1 hiatus

hiatus
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 16 October 2006 - 10:15 PM

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:
.......yada
yada
$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.fertilize...om/contact2.php


#2 trillion

trillion
  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 17 October 2006 - 02:19 AM

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.fertilize...s.com/next.php");




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users