View Single Post
Old 02-28-2005, 10:58 AM   #5 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Quote:
Originally Posted by googs
What else do I need to get this script functioning correctly?
What am I missing here?
sde's example should get you rolling. You just needed to add the actual html header that performs the redirect.

You can either hardcode it in the php script, or rely on the value in the html form. Something like the following might be useful:

PHP Code:
  // skipping other php stuff....
  
$redirect = (isset($_POST['redirect'])) ? $_POST['redirect'] : 'thanks.html';
  
header("location: {$redirect}"); 
  exit; 
So if the html form specifies a redirect page, the php script will use it. Otherwise it redirects to 'thanks.html' by default.


-r
idx is offline   Reply With Quote