https://github.com/nathaniel1024/php-login-registration-system
A secure login and registration system built with PHP, MySQL, HTML, and CSS. This project includes user authentication, password hashing, session management, and a "Forgot Password" feature using PHPMailer to send reset links via Gmail.
https://github.com/nathaniel1024/php-login-registration-system
css gmail-smtp html mysql php phpmailer responsive-design smtp sql
Last synced: about 2 months ago
JSON representation
A secure login and registration system built with PHP, MySQL, HTML, and CSS. This project includes user authentication, password hashing, session management, and a "Forgot Password" feature using PHPMailer to send reset links via Gmail.
- Host: GitHub
- URL: https://github.com/nathaniel1024/php-login-registration-system
- Owner: Nathaniel1024
- License: mit
- Created: 2025-02-09T07:19:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T07:38:53.000Z (over 1 year ago)
- Last Synced: 2025-02-09T08:23:13.703Z (over 1 year ago)
- Topics: css, gmail-smtp, html, mysql, php, phpmailer, responsive-design, smtp, sql
- Language: PHP
- Homepage: http://feifei.infinityfreeapp.com/
- Size: 894 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP-Login-Registration-System
A secure login and registration system built with PHP, MySQL, HTML, and CSS. This project includes user authentication, password hashing, session management, and a "Forgot Password" feature using PHPMailer to send reset links via Gmail.
## Features
- User Registration with secure password hashing
- Login authentication with session management
- Forgot Password functionality using PHPMailer
- Email verification for password reset
- Mobile-friendly responsive design
- Secure input validation and error handling
## Technologies Used
- **Backend:** PHP
- **Database:** MySQL
- **Frontend:** HTML, CSS
- **Email Handling:** PHPMailer (SMTP with Gmail)
## Installation
1. Clone this repository:
```sh
git clone https://github.com/nathaniel1024/PHP-Login-Registration-System.git
- Use the following SQL script to create the `users` and 'password_resets' table:
```sql
CREATE TABLE `table_name`.`users` (
`id` INT NOT NULL AUTO_INCREMENT ,
`name` VARCHAR(255) NOT NULL ,
`email` VARCHAR(255) NOT NULL ,
`password` VARCHAR(255) NOT NULL ,
PRIMARY KEY (`id`),
UNIQUE (`email`)
) ENGINE = InnoDB;
CREATE TABLE `table_name`.`password_resets` (
`id` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`token` varchar(100) NOT NULL,
`expires` datetime(6) NOT NULL
) ENGINE = InnoDB;
### Desktop View
### Mobile View