From the course: Learning PHP
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Process a simple form and send the email - PHP Tutorial
From the course: Learning PHP
Challenge: Process a simple form and send the email
(bright music) - [Instructor] All right, now it's your turn. Build an email form from scratch including these fields. Name as a required field, email as a required field, reason for contact as a select box, which is also required, and message, which is also required. Then, validate the form. Make sure the required fields are filled out and the email is in a valid format and email it to yourself. You can definitely use the HTML form elements to help you, but be sure to validate on the server, too.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
GET vs. POST3m 29s
-
(Locked)
Handling basic form elements3m 37s
-
(Locked)
Handing multiple-choice elements4m 44s
-
(Locked)
Form validation: Making sure required fields are filled in7m 8s
-
(Locked)
Form validation: Appropriate input4m 14s
-
(Locked)
Form validation: Sanitizing input9m 5s
-
(Locked)
Sending the form data in an email7m 9s
-
(Locked)
Challenge: Process a simple form and send the email42s
-
(Locked)
Solution: Process a simple form and send the email4m 24s
-
-
-