In this article, we will create a contact form for your website. The contact form contains only the required fields mostly used in contact forms.

There are needs two parts in Contact form : the client side of the form and the server side of the form. The HTML code, some style (CSS) and JavaScript needs for client side of the form.

Below you can find a basic PHP contact form for a website using only HTML (for the form) and PHP for the form processing to mail.

conatct-us-form

Step 1. HTML Form Code

 

Step 2.Textbox validation using the javascript

Step 3. Refresh the captcha code using below code

Download the complete code from here

download.