php

I was trying create a login page,it has to verify login id and password,if correct it should open a new page with his name and id shown on the top right corner of the header and should display logout ,instead of login in the menu,and also start a session.I am new to programming so i have no idea as to how to transfer the information to the header template i have created,should i use classes, private public variable,what should be the basic structure for all these things to happen–>login,showing the member information,starting the session,opening and closing the database connection,ending the session.Should it be useful to go for the object oriented programming.PLEASE HELP ME

I assume you didn’t search our site. There are tons of login scripts that people have written about.

Here is one to look at. Look at SR’s response.

http://www.phphelp.com/forum/index.php?topic=16384.msg54003#msg54003

If that doesn’t work for you, press the Search button above and type in “login” or “log in”, no quotes.
Then, press search and you would find a long list of posts to explore. Once you have some code in place,
we can help with any problems. If you need to post code, please place the code between the PHP tags above.

Good luck and come back if you need more help!

Sponsor our Newsletter | Privacy Policy | Terms of Service