In this tutorial, I show you how to do form validation in HTML & PHP. The form is created using HTML and validation and processing of the form’s contents is made with PHP. The purpose is to show you some basic HTML form elements and how their data is easy to your PHP scripts. Now we going to create the following elements inputs: text fields and submit button. These inputs will be validated to ensure, that the user has entered their name or email ID correctly or not. If the user entered wrong information or data then the particular will be highlighted with a message beside the related field.