Check Username Availability with AJAX PHP and PDO

On the website, there must be a unique identifier for each user. It can be the username, email-id or any string using which user can log in to the website and access it.

Before adding the user using the registration form it must be check if the username is available or not.

This can either done after submitting the form or using jQuery AJAX to display availability status before submitting the form.

In this tutorial, I show how you can check username already exists or not in the MySQL database table using jQuery AJAX PHP and PDO.

Check username availability with AJAX PHP and PDO

Read more

Login page with Remember me using PDO and PHP

The login page is the basic requirement for membership-based websites.

User needs to login to the website using its username or email and password to access the website. If the user has not logged out but the SESSION is destroyed then it needs to again login to the website.

By adding remember me on the login form the user needs to checked the remember me checkbox and login to the website. Now if the user has not logged out but the SESSION is destroyed.

When the user again accesses the website then it does not need to login and the SESSION is initiated.

In this tutorial, I show how you create a login page with remember me functionality with PDO and PHP.

Login page with Remember me using PDO and PHP

Read more

How to send email using SMTP with PHPMailer in PHP

PHPMailer is a PHP library that has an inbuilt function to send emails safely and easily using PHP from the server.

Mail is a useful functionality on the website.

It is used for user verification, forgot password, sending information, etc.

In this tutorial, I show how you send emails using server SMTP with PHPmailer in PHP.

How to send email using SMTP with PHPMailer in PHP

Read more