Help with Display Username

I am very new to this so hear goes. I have a simple login script for users to login to a website. Once they have logged in they are redirected to the main website. I want to display Welcome at the top of the page. The thing is I do not know how this is done using php. Would someone be kind enough to help me out here. Many thanks…

If you know how a user remains logged in (cookie, session), you can grab the necessary data from there and display it on the page through the PHP script. Find the chapter on cookies or sessions, whichever method is used, on the website and read up on how to extract its data.

Sponsor our Newsletter | Privacy Policy | Terms of Service