Hello. Im wanting to create a very simple login form. using HTML PHP and SQL (i use putty to input my SQL).
Basically all pages on my website apart from home page, login page, registration page can only be viewed if a user is logged on.
I want to create a very simple login form and registration from. So on the login form the user enters there username and password, the php checks the sql table 'users' (which contains ID (automatically generated) name, surname, username, password, year of birth, email address) to see if the username exists and matches the password.
On the registration page the user enters name, surname, year of birth, desired username password (twice which must match) desired password and email address. This information updates the users table and adds the information to it. I'm stumped on how to do this. any help is appreciated.