Jump to content


Photo

Processing Forms


  • Please log in to reply
2 replies to this topic

#1 csimms

csimms
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 30 September 2006 - 05:47 PM

I got a process.php that does the processing to email the data from my form, although I need to redirect the enduser to a thank you page once they click on the submit button from the form page.

How do I redirect to a new page once the submit button is clicked.. I know the code needs to be on the process page, but have no idea what it is.
thanks for your help


#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 30 September 2006 - 06:12 PM

best way i know of: process the form before the header on the same page it was submitted from. on successful completion, here's the simplistic code to forward them to a "thanks.html" page:
<?php
header("Location: thanks.html");
exit();
?>

You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 csimms

csimms
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 02 October 2006 - 09:57 PM

thanks for your help.. I got it working now.. thanks for everything





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users