Hi, I have one registration form. there are 3 steps to complete the registration form. i complete the first step , second step and third step. while i do these steps i can go back edit the form. but at the final step complete and received signup success form and email the user can not access the previous steps. which should show page expired or can not be displayed. Please advice me with code. Thank you in advance. Sheriff
Sounds like a job for JavaScript, preferably AJAX. Can't advise you on how to do it, though, as I'm still getting the hang of it myself.
When the final form is reached, store a session variable or cookie. On the previous pages, have them check the session or cookie, if it exists - display whatever you want.
I've used both of the techniques that the others have mentioned. I would set a $_SESSION variable which gets once you register a user and check against it on the signup pages and as an extra measure I would forward them to another page after the one with that creates the user.
I would suggest the following data flow on the submit: 1. Person fills out data on form then hits submit. 2. On the script side, process the data as you normally would. 3. Once processing is complete, use a php header location redirect to the thank you or confirmation page. By doing this, the end user can hit refresh on the confirmation page and it will not resubmit the form data. If you are just looking to make the submit button go away, you can try something like this: http://www.dynamicdrive.com/dynamicindex11/submitonce.htm -Bing