preCharge Forums - View Single Post - Making a Login Scirpt...
View Single Post
Old 08-03-2006   #5 (permalink)
Naox
Member
 
Join Date: Aug 2006
Age: 19
Posts: 57
Send a message via AIM to Naox Send a message via MSN to Naox Send a message via Yahoo to Naox
Default Re: Making a Login Scirpt...

I would do as Ankita said and save the data in a database, checking to see if their credentials validate. If so, create a session (session_start();) and input their username. Then header("Location: nextpage.php"); to the page you want them to view once they login successfully. on top of the nextpage.php, do a start_session() and if $_SERVER["username"] == "" then redirect them back to the login page. this way no user could get to the nextpage without logging in successfully
Naox is offline   Reply With Quote

 
Loans | Bad Credit Mortgages | Guitar Lessons | Credit Cards | Registro de dominios