Form with continue and submit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikekay
Forum Newbie
Posts: 1
Joined: Mon Apr 13, 2009 9:02 am

Form with continue and submit

Post by mikekay »

Greetings. I am very new to PHP and coding so please forgive my lack of knowledge. I have a program that I've used to generate a form. It works great, but does not have the functionality I require. I wish to edit the PHP script so that it does have this functionality - but I'm not sure where to start.

The form is pretty simple. It includes numerous fields with validation, some without validation and a few checkboxes. The form simply gathers information and emails it to the appropriate person.

What I NEED the form to do is to be able to enter all the fields - hit a continue button or enter another button - and have the form information placed into a cache - then the user enters new information into the form and hits continue and this is added to the cache. When all the information is entered, up to 10 full forms, then the user hits the submit button - and ALL the form submissions are emailed at once - instead of the admin person getting 10 seperate emails.

Is this possible? Any leads or advice more than appreciated.

Thank you.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Form with continue and submit

Post by Christopher »

The two easiest way would be:

1) put the values that have been entered into hidden form fields in all the next forms.

2) save the entered values in the session (see the manual)
(#10850)
Post Reply