Hello all!
I cannot seem to figure out a way to pass an object from one page to another. Now, my flow may be way off, and if it is, please do advise.
I want to have a form for username/password log in.
When the submit button is hit, it takes those values, finds the matching user in the database, and returns the user object. We’ll call him user_object
Now, I want to bring up another page, that allows user_object to enter in additional information (Event details). After it does this, it writes those Event Objects into the database.
My problem is: I need the ID Object attached to user_object while inserting the Event Objects into the database.
The user_object and Event Objects values are assigned from two separate forms and two separate submit buttons.
How do I pass this information?
I don’t want to use session because I have a lot of objects and do not want to serialize and unserialize all the time. I also read that $_GET is a security risk.
Thanks in advance for any help!