You will learn how to make a simple contact form in HTML and using PHP mail function. Make sure that your hosting supports PHP. You need to create one HTML page and one PHP page. Open up your HTML editor.
First, create a blank HTML page and put below HTML codes inside the body tag. Save the file as “contact_form.html” including double quotes.
Second, create new file and put below PHP codes. You need to change the email address at $receiver = “firstname.lastname@example.org”; which will be used to receive emails coming in from contact form. Then, save it as “send_email.php” page.