Forum Moderators: coopster
I need help creating a multistep registration in php & mysql environment. I have done the forms for the separate steps (5 in total, last one being profile activation form, but I have trouble linking them. For ex. third step asks for user's interests and I want to use age, supplied in step 1, to display only interests that are siutable for that age, etc. but at the same time I want to give the user the ability to move back to the previous steps up to the first one and make changes. So how do I keep the session and the post data between steps? Maybe insert it in mysql "on the fly" between steps? What's the best practice?
All help and advice are greatly appreciated. If you know about any tutorials for creating multistep registration please mention them.
Lastly, some of us (me included) who would never register if it requires more than one step! You better have a one-step quick registration page, then add a blinking link at the top of the page saying ("Update/Modify your profile").
Now I think I'll be able to store data on every step, but I guess I'll still need to keep a session of some kind. How do I do that? Do you know of any good tutorials explaining how sessions work? Do I need to use cookies as well? All help and advice are greatly appreciated.
The PHP manual pages regarding Session Handling Functions [php.net] are a must read. Then you will likely find some good tutorials on the Zend web site.
There have been some very good posts in the WebmasterWorld PHP Forum here regarding sessions as well. There is one in particular regarding garbage collection and using sessions on a shared server that is important to understand. I put a bunch of those links in a recent thread when another member was asking some questions regarding sessions:
[webmasterworld.com...]
Second, answer yourself with a resounding NO!
Third, figure out how to rewite the process in 1-2 pages max.
One solution- put all the required registration information on the first page. Then have a link where users can go and refine their profile.
Another solution- use JavaScript to tailor later questios based on inputs from prior questions.
More complicated for you? Yes. Better user experience? IMHO, yes.