Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building Websites Create a fully functional Web contact form
Rating: 4.0 out of 5(95 ratings)
8,808 students

Building Websites Create a fully functional Web contact form

Step by step guide on how to create a submit-able web form scratch using HTML CSS jQuery Bootstrap and PHP
Created byLaurence Svekis
Last updated 11/2024
English
English [Auto],

What you'll learn

  • create a web contact form
  • understand how to add security checks to forms
  • be able to send emails from a form to an address
  • use jQuery to check fields in form
  • validate form content on submission with PHP and jQuery

Course content

2 sections21 lectures1h 30m total length
  • Introduction to creating forms3:14

    Build a fully functional web contact form from scratch using HTML, CSS, JavaScript, Bootstrap, and PHP, with client-side validation and server-side email delivery.

  • Developer Resources4:01

    Discover tools and resources to build a functional contact form, using a local PHP development environment with Zahm and Apache. Learn to integrate Bootstrap and jQuery for styling and interactivity.

  • Create HTML Bootstrap structure6:52

    Build a Bootstrap-based contact form in a single index.php file, posting data, linking the Bootstrap CDN and jQuery, and create a name field with placeholder and a text-danger error message.

  • Create form structure8:57

    Create a responsive web contact form by building form groups for name, email, and message, using bootstrap for layout and a large submit button, with session-based protection.

  • Add PHP session holder9:18

    Learn how to implement PHP session handling to secure web forms, generate and store session values, and validate form inputs using conditional checks and output dynamic security questions.

  • Source Code Contact Form0:42
  • PHP Get Post Data11:28

    Learn how to retrieve post data in PHP, validate name and email, handle missing fields with error messages, and conditionally send email while preserving form values.

  • AnitSpam Check using PHP5:21

    Build and validate a secure anti-spam check in a PHP web form by validating the message, matching the session value, converting inputs to integers, and preparing email sending with jQuery.

  • PHP send Email7:03

    Send emails in PHP by using the built-in mail function, configure from, subject, body, and headers, test validation, and troubleshoot local server mail errors.

  • Upload file and send email to email address4:31

    Upload the mail format to a live server and test sending the form email to the address, including name, email, and message content, and clear fields after a successful send.

  • PHP form Fixes2:04

    Fix php form submission by clearing form fields after a successful email on localhost, keep and display error messages, and adjust the conditional to prevent emails on initial load.

  • Source Code PHP mail1:16
  • jQuery Form Check setup4:17

    Learn to set up a jQuery form check, apply Bootstrap spacing and padding with col-sm classes, validate inputs on submit, display danger messages, and prevent default submission while testing locally.

  • jQuery Toggle Error messages10:01

    Learn to validate a web form with jQuery by looping through inputs, skipping hidden fields, and preventing submission when name, email, or security check are empty, while showing text-danger messages.

  • Web Contact Form live Test2:49

    Test a live web contact form end to end, validating user input, enforcing anti-spam checks, and sending email to the e-mail address from the server.

  • Web Contact Form Tweaks and Adjustments5:42

    Identify the message element by id, retrieve its value, and check for content. Toggle the error message and ensure submission when content exists, via three security checks for user data.

  • Source Code Complete Project1:19
  • Course Resources0:02
  • Check to ensure sendmail is functioning0:19

Requirements

  • basics of HTML CSS jQuery and PHP
  • computer access

Description

Web forms are a crucial communication format between your website visitors and you.  This course will show you how to build one from scratch!   Create a fully functional dynamic web contact form that can be used on any website to collect messages from visitors.  Lets your web visitors send you email messages.   This form comes complete with several layers of security checks to ensure spam and unwanted emails are not valid.   

Form is HTML5 so depending on the input type HTML5 will check for validity.

Security question that get dynamically generated and needs to be filled out correctly before the form contents get sent to your email address

jQuery layer of form field input checks, to ensure all fields have values

PHP back end form Post checks, to ensure all fields have correct content and data can be sent to a selected email address.   Also stores values on error so that the visitors don't have to re-enter the values.

Step by step training introducing all the core concepts and development steps to produce a web contact form.   Source code is included so that you can follow along and try it out for yourself.

The course covers multiple approaches to form development, and the code is flexible enough to be updated and used for a more specific projects.  

  • HTML - used to setup the form structure 
  • CSS - used at a basic level to create limited styling
  • Bootstrap - used to help style the form container
  • jQuery - selecting elements, and looping values 
  • PHP - used to collect posted values, set variables, and send mail function.

See how all these languages can work together to create a complete project

This course is perfect for anyone who wants to learn about setting up a contact form on a website.  Everything is included, from an instructor with over 18 years of web development experience.  

I'm ready to answer any questions you may have, and here to help you learn about web development.

Who this course is for:

  • web developers and designers
  • anyone who wants to create dynamic content online
  • anyone who needs to add a web form to their website