PHP Projects: How to Submit an HTML Form to a MySQL Database AND Send an Email Using PHP

John Morris, I help freelancers get clients.

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
12 Lessons (44m)
    • 1. Introduction and Overview

      2:24
    • 2. Create the config.php file

      1:40
    • 3. Build the HTML Form

      6:17
    • 4. Processing the Form Data

      4:41
    • 5. Functions File Overview

      1:57
    • 6. Validate the SPAM Check

      3:27
    • 7. Validate the Email Address

      1:25
    • 8. Validate and Whitelist the $_POST Data

      7:11
    • 9. Submit the Data to the Database

      8:35
    • 10. Send the Email

      1:48
    • 11. Store Entered Data on Form Error

      2:14
    • 12. Wrap Up and Final Thoughts

      2:34

About This Class

In this class you'll learn how to build an HTML form that submits data to a MySQL database then sends an admin email notification. Lessons include:

  • Creating the config.php File
  • How to Build an HTML Form
  • How to Process Form Data
  • How Create and Validate a SPAM Check
  • How to Validate Email Addresses
  • How to Whitelist Form Data
  • How to Submit the Data to a Database
  • How to Send Emails In PHP
  • How to Store Entered Data On Form Error

You'll create a real contact form through the course. You'll get full access to the source code.