freecrm has already clarified most of the things required to make a login page.
The first thing that you need to do is create a Login screen. You can do this either using the design view or the code view of dreamweaver. Once you have this, then you are ready to add in the PHP code needed to make the login work.
The first thing to do is to make a database that is going to contain the login information. This is done by running SQL commands in MySQL under the cPanel belonging to your account.
Code:
CREATE TABLE users (ID MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(60), password VARCHAR(60))
This is only a basic SQL statement that you could use. If you want extra fields on your registration form then you need to add extra fields into your database.
The next part of the build is to build a registration form to enable you to enter information into the database, that you can then use to login with.
The only fields you are going to need are a username one and a password field.
Code:
<input type="text" name="user" />
<br />
<input type="password" name="password" />
<br />
<input type="button" name="submit" value="Register!" />
That code above creates a simple basic register form. You need to include the registration code that you are going to add in a seperate page.
register.php
First the connection:
PHP:
$db[user] = "cPanel username here";
$db[pass] = "cpanel password here";
$db[host] = "localhost";
$db[dbname] = "name of database. Normally begins with your cPanel name";
$db_conn = mysql_connect("$db[host]", "$db[user]", "$db[pass]")or die("cannot connect");
$db_select = mysql_select_db("$db[dbname]")or die("cannot select DB");
That creates the connection to the database and then shows any erros if there are any when you are connecting to your database.
Now you have to add an insert statement into the register.php file in order to get the information that has been entered into the form into the database.
Now I aint very good with PHP so you shall have to serach google onto how to insert statements with sql using variables.
You can add extra features to the register.php file in order to make the registration more secure, such as md5 hash encryption. This is really useful on things such as passwords etc.
In the login page you need to add code to match the the entered info with that in the database!
Again me not being good with PHP and a it being a long time since I created something like this, a lot of google research will be needed when creating this.
Post back if you need more help and we shall see what we can do!