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

How to Auto populate dropdown with AJAX PDO and PHP

With Autopopulating dropdowns user is restricted to select an option from the dropdown step by step. Based on the dropdown selection next dropdown is autofill with options.

A common example, of this, is country, state, and city dropdowns on a form.

To load data without page refresh need to use jQuery AJAX.

In this tutorial, I show how you can auto-populate the dropdown with PDO and PHP.

How to auto populate dropdown with AJAX PDO and PHP

Read more