I find sessions to be the best solution in these situations. I like to compile the problem into a single multi-dimensional array of pages and form inputs such as..
$forms = array ( 'contact' => array ($company, $name, $email, $addr, $phone), 'creditcard' => array ($full_name, $num, $type, $confirm) ); session_register(forms); Access.. $forms[contact]; // $company $forms[creditcard]; // $cc_confirm This way there is no chance I can loose data. And there isn't anything that my visitors can do to mess it up. Set the No-cache headers at the top of each script to prevent the "page expired" message from appearing when your users hit the back button. You should also use the session array to repopulate fields. Do not rely on browser cache. header("Pragma: no-cache"); header("Cache-Control: no-cache"); -Kevin -----Original Message----- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 9:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Multipage form I was just wondering what was the best way to handle a multipage form. Would the best way be to keep passing the variables through the forms as hidden values or should I use sessions and store all the values as session variables? What's the best way to handle all of this? Also the different forms will all be in the same php file that loops to itself if that makes a difference. Thanks, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php