Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to create a secure signup, login, and logout system using PHP and MySQL in this comprehensive tutorial video. Explore best practices for user authentication, including server-side validation, password hashing, and database integration. Master techniques for preventing duplicate email registrations, implementing POST/Redirect/GET pattern, and utilizing sessions for user management. Enhance your web development skills by incorporating client-side validation with JavaScript and AJAX for real-time email verification. Follow along to build a robust user authentication system from scratch, covering everything from HTML form creation to database connectivity and security measures.
Syllabus
Introduction
Signup form HTML
Add classless CSS
Process form in PHP
Server-side validation
Hash the password
Create the MySQL database
Connect to the database from PHP
Insert a new record
Prevent duplicate emails
POST / Redirect / GET
Login form
Process the login form
Verify the password
Use the session for login
Add index page
Add logout page
Show logged-in user's name
JavaScript signup validation
Custom validation
Remote validation
Summary
Taught by
Dave Hollingworth