
Set up a local environment with xampp, wamp, or mamp, run php and mysql, and practice coding to build a login and registration system.
Download and unzip the student files, organize them into a login folder, and preview localhost/login with Bootstrap templates and jaggery-driven JavaScript to support a PHP login and registration system.
Learn to reuse HTML across PHP login and registration pages by creating an includes folder with header, footer, and navigation files and including them on every page.
Learn to initialize a modular PHP structure by creating a functions folder, an init file, includes for header and database connections, and ajax functions, then test with an echo.
Create and test a MySQL database for the php login system, building login_db with a users table (id auto_increment, username, password, active) and then verify the connection.
Initialize output buffering and session, then implement database helpers: a reusable query function, an escaping function, and a fetch utility with error checking to confirm database results.
Test and validate your PHP helper functions to ensure database interactions work, fetch user data, and display results correctly across the app, with shared connections.
Explore general helper functions for PHP database operations, including counting records, input cleaning with entities, and secure redirects, plus session messages and a talking generator for form security.
Update the registration form to include first name and last name, enhance input validation, and implement a server-side PHP function to clean and process POST data for secure user registration.
This lecture covers validating user input in a PHP login system, trimming form values, strlen-based 3 to 20 character checks, and error handling with an array.
Master validation and pretty errors with alert components in login and registration, 'first name cannot be more than 20 characters' and 'last name cannot be less than three characters'.
Implement email length checks and a password match validation in a PHP login and registration system, and refactor by extracting error display into a reusable validation_errors function for cleaner code.
Create an email column in the users table below the username, then insert sample data to prepare for email activation in the next lecture.
Implement email and username existence checks in the PHP login and registration system, adding functions to query the database and display errors when the email or username already exists.
Create a register user function with input validation and data escaping, check for existing email or username, then encrypt the password and insert into users table with a validation code.
Debug and implement a PHP user registration flow by fixing syntax, building the insert query with name, username, email, password, validation code, and ensuring the active flag.
Register a user, display a green success message, redirect to the home page, and send an activation email with a link for account activation.
Explore email functionality in the PHP login system using the native BHB mail function, and learn how Section 12 introduces the BHB Mailer with SMTP to improve delivery.
Learn how to send an activation email during user registration by setting up a generic mail helper, composing a clear subject and message with an activation link and validation code.
activate user accounts by validating email and validation code via a get request, query the users table, and set active to 1 while testing on a live server.
Learn to activate a user in a PHP login and registration system by updating the active flag and resetting the validation code, with input escaping and secure email verification workflow.
Implement a login system that authenticates users only after they activate their account via an email link, building on the existing registration flow.
Build a two field login form with HTML5 validation, display and handle error messages, and reuse the registration validation workflow while prepping for session management and remember me features.
Create a login_user function that takes email and password and returns true or false. Validate input, query users table, and verify hashed password to grant access or show an error.
Demonstrates fetching and decoding the stored password by email, validating it against the login form, confirming user activation, and preparing a session for persistent login.
Set up a session-based login flow by verifying the password, storing the email in a session, and using a logged_in function to display 'logged in'.
Implement a PHP logout feature by starting the session, destroying the session, and redirecting to the login page, while updating navigation to point users to log in after logout.
Learn how to implement the remember me feature in a PHP login system by using cookies with expiration to persist user login across browser sessions, alongside session management.
Implement the remember me feature by setting a cookie with the user’s email when the login checkbox is on, and validate it with the session to persist login.
Implement the remember me cookie by setting an empty value with a 60-second expiry, manage logout behavior, and conditionally show links based on login state as the next steps.
Learn to implement a PHP password reset flow: validate the user's email and send a reset link using post requests, a token, and session checks.
Verify the submitted email exists in the database, escape input, and send a password reset email containing the reset code and link with the subject 'please reset your password'.
Implement a PHP validation code flow for login/registration: set a short-lived validation cookie, store and verify a code in the database, attempt email delivery, and test the activation/recovery flow end-to-end.
Learn how to implement validation on your login system by checking the temp access code cookie, handling email send status, and redirecting users after activation.
Validate the email confirmation code in a PHP login and registration system. Learn to handle post data, escape inputs, query by email and code, and redirect or show errors.
Demonstrates implementing revalidation and redirects in a PHP login flow, handling expired cookies, generating a new session, validating email and code, and navigating to the reset page.
Configure token-based password reset by setting validation cookies, generating a validation code, and redirecting to a secure reset page with email and code.
This lecture validates the password reset flow by checking the validation code and a five-minute temp window. It shows expiration messages and prepares the next lecture's reset functionality.
Learners implement a secure password update flow by validating form input, checking email and session data, testing validation code, and encrypting the new password before updating the user record.
Encrypt the password, update it in the database after validating a reset code, and guide users to log in with the new password via the recovery flow.
Fix the forgot password page by adding proper redirects and preventing confirm resubmission, and show the logo and admin links only when the user is logged in.
deploy your website online by selecting a hosting provider and a domain. learn with bluehost, get a free domain and ssl, sign up, and upload your files to go live.
Learn how to sign in to Bluehost using your domain name or Google account, and enable two-step authentication with a six-digit verification code to secure your PHP login system.
Delete the WordPress setup and build a site from scratch by creating a new environment, configuring a domain, and uploading files via the file manager over a secure protocol.
Learn to set up SSL certificates through cPanel, upload website files via the file manager, create and edit index.html, and enable HTTPS by installing the certificate on your domain.
Configure htaccess in your public_html to enforce secure redirects. Upload login.zip, extract contents, and prepare database connectivity with phpMyAdmin on Bluehost.
Set up a MySQL database via the hosting wizards in cPanel. Configure db.php with credentials, import the database with phpMyAdmin, then test activation email login.
Replace the plus symbol with a dot in the recover password function, and save and refresh to fix the email link issue, ensuring the reset email reaches the spam folder.
Move sensitive files from the public directory into a core folder in the home directory, update includes, and back up with zip to boost security and prevent data exposure.
Move database credentials from static data to a config folder as constants to boost security. Load config with require using __DIR__ in the core directory to mirror production.
Move sensitive database credentials into a dedicated config file within a config folder, define host, user, password, and db name, and implement a dbconnect function to return the connection.
Download the updated htaccess file, copy its contents into your existing htaccess, and apply the server directives to prevent directory listing and strengthen your site security.
Implement and display validation errors for password reset mismatches by echoing 'passwords don't match' in the login and registration system, and synchronize updates between local and live servers.
Modify the login system to remove the not sent email code, replace email links with localhost or your website, and update the server configuration to ensure emails are sent correctly.
Fix the noreply email and headers in the registration flow to ensure the correct link is sent. Align server settings and the reply address.
UPDATED ALL THE TIME
NEW LECTURES ADDED ALL THE TIME, JUST FOR FUN :)
---------------------------------------------------------
Are you ready to learn how to build a complete login and registration system using PHP and MySQL? Then you are at the right place at the right time.
No Water cooled chatter!
We don't do a lot of chatting on this course and always go straight to point. We take a very practical approach and get things done.
We love helping!
Have a problem in one of the lectures? No problem we are here to help. Need personal assistance from a lecture? Tells us the problem and let's get it done.
Main Features
1. User activation by email
2. Always logged in feature (Remember me)
3. Encrypting Passwords (NEW BCRYPT) we don't use MD5 anymore!
4. Password Recover by email system (NICE)
5. Token Generator security feature (Good stuff)
6. Did I mention an awesome instructor that loves his students ?
7. Features added to the course all the time
-----------------------------------------------------------------
On this course we will the use the latest PHP syntax along with the latest MySQL with the latest Bootstrap as well. You will have a lot of fun in this course and learn a lot. You can also recommend any feature you would like implemented and they will be considered to be included in the course.