thejeremy
In Runtime
- Messages
- 104
- Location
- Chicago IL
Here's the structure of my program.
A user will login (login.php), they will read some instructions (instructions.php), and they will finally be directed to answer some questions in a step by step survey (questions.php). My question is, how can I access variables that were entered back in login.php, such as username or email address for example, when the user has already left that page? I need to insert the answer from each question into the database as it is entered, and I need to locate the current user's table entry and access the MySQL database to do so. Is there some global variable type I can initiate to hold these values? I'm sorry if this is a noob question, I'm still learning.
Help is appreciated.
A user will login (login.php), they will read some instructions (instructions.php), and they will finally be directed to answer some questions in a step by step survey (questions.php). My question is, how can I access variables that were entered back in login.php, such as username or email address for example, when the user has already left that page? I need to insert the answer from each question into the database as it is entered, and I need to locate the current user's table entry and access the MySQL database to do so. Is there some global variable type I can initiate to hold these values? I'm sorry if this is a noob question, I'm still learning.
Help is appreciated.