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

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
  • Developer Resources4:01
  • 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
  • Add PHP session holder9:18
  • Source Code Contact Form0:42
  • PHP Get Post Data11:28
  • 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
  • Upload file and send email to email address4:31
  • PHP form Fixes2:04
  • 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
  • Web Contact Form live Test2:49
  • 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