You need to slow down and think things through. My recommendation would be to get a SINGLE PAGE form to work how you want first, then assess the logic needed to move onto multiple forms.
Also, this was asked a while back, so here was my answer & sample code last time: http://marc.theaimsgroup.com/?l=php-general&m=104371796307302&w=2 Justin on 11/03/03 4:45 PM, Ashley M. Kirchner ([EMAIL PROTECTED]) wrote: > > I'm trying to build a multi-step form and using sessions to register > the field values, but having serious issues. This is what I'd like to do: > > step 1 (first page): ask for name, address, email. [submit] > step 2 (second page): ask for more personal information [submit] > step 3 (last page): ask for specific event information [submit] > send everything to a back end MySQL db, and redirect to a thank you > page. > > This whole process is just one form.php file that posts to a > process.php script. The content of form.php gets changed based on the > step# (they get included step1.inc, step2.inc, and step3.inc.) > > However, after each [submit] I would like to verify the data prior > to continuing to the next page. If any of the fields are missing or > incorrect, we re-post the same page with the correct fields already > filled in (based on whatever the user entered), and the missing one ... > blank (obviously.) But, if everything is okay, and all fields check > out, register the values and go on to the next page. Repeat the process. > > I'm having a heck of a time with the validation part. Either things > don't register, or it gets stuck in a loop, regardless of what I change > after the re-post. So, I need some help. I need some code...help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php