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

Dynamically load data in Select2 with AJAX PDO and PHP

Select2 is a widely used jQuery plugin. It makes select element user-friendly.

After initializing it adds style and a search box. Based on the search text it filters the options.

It allows loading data dynamically using jQuery AJAX.

In this tutorial, I show how you can initialize select2 plugin and load data dynamically using AJAX PDO and PHP.

Dynamically load data in select2 with AJAX PDO and PHP

Read more