you can store the file's name where you are standing, and if you on the second page, you see the last element of the $_SESSION["last_page"] variable, and you store if the visitor fill the second page form.
............................................................
but i prefer the method , this is when you store the session_id in the database.
you can store the form's information in that table. After filling a 1th form, you insert the 2th pages information into tht table, and when the user goes to another 1th page form, you didn't need to ask that (you select the session_id from that table). you can check if the user ever used an email address, ect.
-but you must handle when a user wants to fill the same form again.
hello,
jjozsi
gilsontech;10889889 wrote:So i made this website: http://www.StoreHouseTech.com
I have an idea on how to make multiple php pages with sessions, but not 100% sure where to start.
I have over 30 form pages. The client wants the drop-downs to be filled in and have the user click on a submit button, it would then go to a page where the user could see their options and then fill in their contact info for a final submit button that would email the info.
The thing is all the drop-downs are different (1st new page), but the 2nd new page (contact info) would always remain the same.
here's a current product page: http://www.storehousetech.com/616f.php
How can i always use the same 2nd page and make this work?
THANKS in advance for anyone's help!