Skip to content

salahghr4/hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOGIN SYSTEM IN PHP AND MYSQL: User Authentication system.

hackathon - OFPPT

User authentication in web developemen is used to authorized and restrict users to certain pages in a web appplication.

REGISTERATION SYSTEM

DATABASE TABLE IN MYSQL

The database used is MySQL, so you'll need a MySQL database to run create the users table. Run the hackathon.sql file in MySQL database to create users table.

CONFIGURATION FILE

The PHP script to connect to the database is in config.php directory. Replace credentials to in config.php to match your server credentials.

REGISTERATION FORM AND SCRIPT

The register.php creates a web form that allows users to register themselves. The script generates error if form input is empty and username is has been taking already by another user.

## LOGIN SYSTEM

LOGIN FORM AND SCRIPT

login.php is the login script. When a user submit a form with the input of username and password, these inputs will be verified against the credentials data stored in the database, if there is a match then the user will be authorized and granted access to site or page.

DASHBOARD PAGE

User is redirected to dashboard.php if login is successful.

LOGIN OUT

logout.php log out the user and destroy all his sessions.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published