Topics in PHP

PHP Complete Form Validation

We can create and use forms in PHP. To get form data, we have to use PHP superglobals $_GET and $_POST. PHP Form Validation With Example In this unit, we see a complete PHP Form with validations. Form validation is one of the major aspects of web development in PHP. There are many vulnerabilities and […]

PHP Form URL/Email

Email and URL address form field validation is easy in PHP. There are inbuilt functions available to validate Email and URL addresses. PHP Form Email Validation There is no way to be 100% sure if an e-mail address is working unless we send an e-mail. What we usually do is check if the syntax of […]

How to Send Emails From PHPMailer Using SMTP

There are lots of methods to send an email in core PHP. There are two most commonly used methods, which are the PHP mail function and the PHP SMTP mailer. Before starting, let’s get some basic information about PHPMailer and PHP mail function. Even more, we will see why PHPMailer is better than the PHP […]

What Is PHP Array Index? Explained With Example

In PHP language, there are different types of arrays like: Indexed array Associative array Multidimensional array We use them according to our requirements. PHP array provides the index number to each of the array elements. These index numbers are used to perform different operations on arrays. For example: According to the index number of the […]

PHP MySQLi Connect

In this article, we will learn about mysqli_connect and how to use mysqli_connect to use a MySQL database with PHP. We can easily modify, view, or manage the tables created in the MySQL database using MySQLi functions. We have to create a connection variable using mysqli_connect in PHP which connects with MySQL. MySQLi Connect in […]