Simple Contact Form with PHP

Learn how to create a simple contact form for your website with Object Oriented PHP and JavaScript.
4.5 (2 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
66 students enrolled
$50
Take This Course
  • Lectures 23
  • Contents Video: 1 hour
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 8/2013 English

Course Description

In this course you will learn how to create a simple contact form for your website with PHP and jQuery.

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:

What are the requirements?

  • PHP web server - either local or remote

What am I going to get from this course?

  • By the end of the course, you will be able to create a fully functional online enquiry form with PHP and jQuery
  • In this course, you will learn how to build the html form structure, how to send the submitted information to the PHP file for processing using jQuery's ajax call, how to create the html message and send it using PHP

What is the target audience?

  • Anyone with basic knowledge of PHP. We use php classes in this course, but the knowledge of OOP is not necessary to be able to complete it.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction
About the project
Preview
00:59
Section 2: Form structure
Exercise files
Preview
02:28
Custom style definitions
Preview
01:53
Form structure
Preview
04:22
Custom select, textarea and button
Preview
03:42
Enquiry type dropdown menu
04:35
Section 3: JavaScript Template object
Submit form method
03:56
Validation
01:57
Display message and clear form
02:05
Reset form
04:34
Section 4: Processing request
Helper json encode
04:03
Alert wrapper
01:44
Validator class
03:15
Filter expected and required
03:02
Add to errors array
02:25
Entry validation
04:22
Email validation
02:07
Submit file
03:29
Validate request
02:42
Format message to html
06:37
Send method
05:32
Test
01:34
Section 5: Conclusion
Project summary
00:31

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Sebastian Sulinski, Founder of SSDTutorials.com

A passionate web developer and bass player with over 10 years in web industry.

Founder of SSD Tutorials, where he publishes his free and premium tutorials on how to build modern web applications.

Currently living and working in United Kingdom as a Senior Web Developer for one of the companies in West Sussex.

Ready to start learning?
Take This Course