Here I am going to discuss a most common and necessary component which everyone requires for their blog or website, which is a contact-us form. Below you will find the code of a simple contact form. Also, I will discuss how to create the form and handle its submission. Generally We require that when someone is filling the form, its information will be either stored in a database or will be mailed to a given email address. In this post, we will only discuss the email part. You are welcome to modify and store the information in database with very small tweaks.
Let’s start..!! We need files, one to display the form and other one to capture its submission:
- contact.php : this will contain the html code for the contact form.
- process.php : this file will have necessary php cods for handling the above contact form.