Working with Sessions in PHP & MySQL
I would like a tutorial for a multi-paged form (quesitonnaire) that is connected to a database using PHP (Sessions) & MySQL. Database consists of 12 fields including a user_id that is auto incremented and PK.
Steps are:
1. Initial form page. With 3 drop down menu questions.
2. Have page 1's field information insert to database. then go to page 2.
3. Page 2 form... has 3 radio questions- update database using the same user_id as page 1. Then go to page 3 when completed.
4. Same as Page 2 for page 3. Then go to page 4.
5. Page 4 will summarize the field input into "customized" paragraph by 'getting' the fields from the same user_id that filled out pages 1-3.
6. Page 5 fill out a contact form with 4 fields. This will also be updated in the database for the user_id.
7. Must send email to me and viewer of the results of the "whole" questionnaire after the database gets updated with their contact info.
NOTE: only the contact field page are required fields.
Comments
Be the first to write a comment
You must me logged in to write a comment.