LoL.
Ok.
Login systems can vary from very basic to VERY complex.
Ill try and explain a very basic one.
Ideally, you need to have some understanding of PHP and mysql.
here goes.
Essentially you will have your users email addres & maybe a password in a mysql database.
Then on your login page you would have a login form with a email field and the form would post to userarea.php
inside userarea.php
you would then get the data from the posted form
PHP Code:
session_start(); $email = $_POST['email']; # put validation code here to check its an actual email address format.
Then in your userarea.php you would then do a mysql select on your DB for that email address and possibly password.
If it finds that user in the DB you would then set their session var to logged in.
Then on any other php page, you can run php querys and build dynamic pages for them based on their login details.
While this may not make much sense, I hope it helped a little with understanding some kind of login strcuture.
|