User Login With Activation Check Using PHP And MySql

This code is continuation from the last script, we will login a user based on the user is active or not, if the user is active, he is able to access otherwise he will be shown with an error message.

First, we are connecting to the database, and taking the input values from user, if the user name, password matches and the account is active we will allow him to the user’s area. Other wise we will display an error message.

I think you have worked on the previous code for registration, if so you have table, otherwise create table from the previous script and dump in the some values.

  1. Simple User Registration Script in PHP and MySQL
  2. Simple Login Script in PHP and MySQL
  3. User Login with activation check using PHP and MySQL
  4. Send Forgotten Password by mail using PHP and MySQL

We are creating two pages.

  1. connect.php
  2. login.php



If you want to learn other things you can read other posts – registration, login, user login with activation check, and sending forgotten password by email .

I hope this article helped you to learn user login using PHP and MySQL . To get latest news and updates follow us on twitter & facebook, subscribe to newsletter. If you have any feedback please let us know by using comment form.

before login check multiple table username and password using php mysql login active page with mysql and php login form that checks username and password in mysql login php check php password activate
Vivek Vengala

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: