Adding a Contact Form

Adding a Contact Form

PHP does more than just make a set of HTML files easier to maintain. It also adds advanced functionality to a site that HTML and CSS alone cannot achieve, like sending an email. We’ll create a contact form for our website, allowing users to enter a message into an HTML form and then using PHP to process the form submission.

Extra Credit

Add a new type of field to the contact form, something like a dropdown field with a label of "Reason for Inquiry" and a few options in it.