i was wondering if anyone could help me. i'm new to php and i'm having problems setting up a session.
i have a login page (page1) where the user inputs their username and password and when they click the submit button they are brought to another page (page2) where they have two options. if they choose option to purchase a ticket they are brought to page3 where they choose the type of ticket. when they click submit on page3 it executes a php script that generates a ticket number and inserts it into the ticket table.
what i want to do is also insert the users AccID against the newly generated ticket number.
i want to get the AccID from the Users table when the person logs in at page1 and insert it when the person clicks submit oon page3.
i have tried some code but i am unsure where the session code goes and how to call variable stored in it.