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.
6 videos • 3 quizzes • 1 code challenge
-
Play
Preview
Creating Input Fields
6 minutes 34 seconds
-
ABC
Preview
Quiz: Input Fields
5 questions
-
Play
Preview
Working with Post Variables
4 minutes 6 seconds
-
ABC
Preview
Quiz: Forms and Post Variables
5 questions
-
Play
Preview
Working with Concatenation and Whitespace
4 minutes 57 seconds
-
Code Challenge
Preview
Code Challenge: Concatentation
4 objectives
-
Play
Preview
Redirecting After a Form Submission
5 minutes 13 seconds
-
Play
Preview
Checking the Request Method
2 minutes 51 seconds
-
Play
Preview
Working with Get Variables
4 minutes 13 seconds
-
ABC
Preview
Quiz: Form Submissions
5 questions
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.