Jump to content

[SOLVED] session variables


NickG21

Recommended Posts

hey everyone im looking to make a signup form that will be located on 6 different forms.  i want to make it so each form is loaded individually while storing all of the previous information into a session variables.  is there anyway i can do this without going through these pages and declaring 50 different variables to store the individual data?  any help is appreciated
thank you
Link to comment
https://forums.phpfreaks.com/topic/32755-solved-session-variables/
Share on other sites

will that code go through and take every individual piece that is submitted and put the name and value into a specific key of the session?

To try and be a little more clear of my whole purpose i have a signup for service page broken into 6 different sections.  i am trying to have the user fill in one section, click a next button and have the next form load on the same page and store all of the information into either one or multiple session variables that will be able to be viewed and accessed after the 6th and final form is submitted.
hope that helps a little more
[quote]will that code go through and take every individual piece that is submitted and put the name and value into a specific key of the session?[/quote]

Yes. Everything submitted via post will ned up in a session variable, the session variables key would be the same as that of the post.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.