Multipage Register Form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Multipage Register Form

Post by tecktalkcm0391 »

If I have a multipage register form, how do I get the information from the first page to the last where it would then be processed and put into the database.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

My suggestion would be to use session variables
and once you write your data to the database destroy_session();
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You have a couple of options

- pass collected values in hidden fields on each successive form

- save values in the session as you go

- save values in the database as you go

Which one you choose depends on other requirements.
(#10850)
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Well I am doing something to list things on my website. Like an post, but it has multi-pages.

But I'll figure out something thanks!
Post Reply