I have two major things I want to learn about PHP at this point.
One, when I create a login system, I want certain information about the user to 'follow' him throughout the site. My understanding is that in PHP, this is done by creating Session Variables.
I have tried a tutorial that in online. But Still don't get it.
When I log in, how do I set Session variables as part of the log in script?
the users name, email address for example.
Then, how to I reference those variables in subsequent PHP pages?
For instance, I want the login persons first name on every page in the site, as they are visiting.
This is one question,
Then I want to create an array for a select statement from MySQL upon startup and then have that array persist indefinitly in the website.
Then when I create a selet statement do this:
<select name=mypopup size=1>
Loop the number of times as the array has items
<option value="the first item of the first row of the array">The second item of the first row of the array</option>
end loop
</select>
I am brand new to PHP so if there are other forums I might go to get my questions answered, please tell me as well. I have the O'reilly book on PHP , but the section on Session Variables doesn't answer this question.
Thank you for the help.
I you would like you can email me directly at [email protected]
Thanks again.
dmarkwa
One, when I create a login system, I want certain information about the user to 'follow' him throughout the site. My understanding is that in PHP, this is done by creating Session Variables.
I have tried a tutorial that in online. But Still don't get it.
When I log in, how do I set Session variables as part of the log in script?
the users name, email address for example.
Then, how to I reference those variables in subsequent PHP pages?
For instance, I want the login persons first name on every page in the site, as they are visiting.
This is one question,
Then I want to create an array for a select statement from MySQL upon startup and then have that array persist indefinitly in the website.
Then when I create a selet statement do this:
<select name=mypopup size=1>
Loop the number of times as the array has items
<option value="the first item of the first row of the array">The second item of the first row of the array</option>
end loop
</select>
I am brand new to PHP so if there are other forums I might go to get my questions answered, please tell me as well. I have the O'reilly book on PHP , but the section on Session Variables doesn't answer this question.
Thank you for the help.
I you would like you can email me directly at [email protected]
Thanks again.
dmarkwa