User log in- display id info
Here we go:
I used dreamweaver mx2004 to create a log in script (PHP). The log in form uses a MYSQL db to compare the login info to. The script uses sessions to allow the user access to certain restricted pages during the session.
My question is this: Is there any way for that members db information to be displayed in a page when they log in?
Im sure I am not being clear, so I will give an example.
A member registers with the site and registers the typical information (name, address, city, user name, password etc.) Now, when that member goes to log into the "members page", I want all of his/her registered information to appear on the members home page so that they can update it as they need to.
Would you need to use cookies? Sessions? I'm a little confused.
Suzanne posted this at 23:39 — 27th September 2004.
She has: 5,507 posts
Joined: Feb 2000
Sure, pull it out of the db. It would be related to sessions only that it would use the user id from the session to determine what information is printed?
mjs416 posted this at 14:25 — 28th September 2004.
They have: 127 posts
Joined: Dec 2003
Yeah, Dreamweaver stores the user id in a session varriable. From there, I used that session variable as a variable in the MYSQL query. I figured it out last night. Basically, what you said.
Thanks for the help.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.