Sorry, your browser is not supported
To have the best experience using Skillshare, we recommend that you use one of these supported browsers.

Simple Contact Form with PHP

Sebastian Sulinski

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
23 Videos (1h 12m)
    • About the project

      0:59
    • Exercise files

      2:28
    • Custom style definitions

      1:53
    • Form structure

      4:22
    • Custom select, textarea and button

      3:42
    • Enquiry type dropdown menu

      4:35
    • Submit form method

      3:56
    • Validation

      1:57
    • Display message and clear form

      2:05
    • Reset form

      4:34
    • Helper json encode

      4:03
    • Alert wrapper

      1:44
    • Validator class

      3:15
    • Filter expected and required

      3:02
    • Add to errors array

      2:25
    • Entry validation

      4:22
    • Email validation

      2:07
    • Submit file

      3:29
    • Validate request

      2:42
    • Format message to html

      6:37
    • Send method

      5:32
    • Test

      1:34
    • Project summary

      0:31

About This Class

This series of videos explains how to create website contact form with Object Oriented PHP.

You will learn how to:

  • create the html structure of the form
  • submit request using jQuery ajax approach
  • validate empty fields and display the message accordingly
  • validate email address entered into the email field
  • create HTML message
  • send email using PHP

During this course we will make use of the following, free resources in order to format and style our form:

  • Google Fonts
  • Zurb Foundation 4