Forum Moderators: mack

Message Too Old, No Replies

PHP Sessions for a newbie

I'm looking for a complete and simple example of utilizing sessions

         

jd80

5:41 am on Feb 19, 2004 (gmt 0)

10+ Year Member



I'm looking for a simple example (complete with code) of using PHP sessions to keep track of a single variable from one page to another and then to a third page. The variable should come from a form question and not only be used on the action page of that form, but also on a third page using sessions to save it.

I've read all the material at php.net but still don't get it. Please, if you can help, include exactly all the code that is necessary to do this.

See, eventually, I would like to be able to query the user for their email, then do a MySQL look-up and implement their stored preferences. Any example that touches on this would be greatly appreciated. Thanks in advance for putting up with us newbies 8)

John

bigm

7:56 am on Feb 19, 2004 (gmt 0)

10+ Year Member



Hi

This article looks like a good introduction to sessions in PHP

[phpfreaks.com...]

HTH
bigm

jd80

10:25 am on Feb 19, 2004 (gmt 0)

10+ Year Member



You da man BigM! (or woman that is) Thanks 8)