I cannot get my page to display user information after they logged in. Help, please?
I am new to PHP/MYSQL. The database works totally fine. I have a username, password, first, and last name field in my database currently. The log in works perfectly fine. I have all the statements needed and whatnot and my code validates whether or not I was able to log in. Here's my predicament...
My form uses the POST method to retrieve the username/password and blah blah blah. I can have it display the username on any other pages by using the session cookies and whatnot. I just need to know how to access my first and last name information.
For example. When the user logs in and they go to the next page, I want it to say: Welcome, Joe Blah. The text, Joe Blah, isn't inputted into the form or submitted any way. It's located IN the database. I just don't know how to access it...
Once again, I'm sorry if some of the terms I used were incorrect. I actually JUST learned how to do this from a good friend of mine who is a web developer. I just need to know a little bit more. I'm catching on pretty well...I just can't seem to find what I'm looking for. I've browsed the internet an hour or so prior to this, and everything that has to do with displaying the user's info has to do with the POST method and they just re-display it on a different page.
Well, thanks again!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread