I’m building a test website which uses forms with the $_POST method. I’m building three pages, the first one where the user can select values from drop down boxes, like a quote page, then another page where that quote is passed on to another form to collect the users information like name, email, that sort of thing then finally a page where they can make a payment.
Anyway, I was reading up on PHP sessions and the basics but I could use a little help. I (think) I need to use them in order to stop users from lets say, jumping straight to page 2 or 3 instead of going in the correct order of filling in the first form, then second form, etc. Of course I don’t want someone just being able to go to the checkout page by typing in the URL and skipping the other two pages or something like that. (Hope that makes sense?)
So i’m assuming you use PHP sessions to stop people just jumping to certain pages right?
How exactly do I code something like this? I know its something like session_start(); but I got confused with the variables part and all the other stuff, so if someone could just help me a little that would be great!
I hope I explained this well enough and I really apologize for making it so long!