How To Build a PHP Contact Form

The definitive guide to PHP

Hi friends,

Welcome to the definitive guide to php course.

PHP is a fantastic language, and, in this course, I want to show you how to get started by creating a working, production ready contact form.

I will take a very practical approach by building out the contact form from scratch, but at the same time implement some complex concepts like variables, loops and storing the data in a MySQL database and then using that information to create an email which will then send off the information through a mail server to my inbox.

This course is ideal if you wanted to get into programming but got stuck along the way. Either because every time you work through a tutorial you fail to see how it fits together in the bigger scheme, or because you just never got to understand how you would apply variables and loops in the real world.

That is the aim, I want to show you how this all translates back to the real world and hopefully spark that aha moment in your journey.

All the video courses are accompanied by in-depth articles on this website where the full source code is available with additional commentary.

Without further ado, lets get coding!

PHP Course Overview

We will be building a working PHP contact form using phpmailer, mysql, boostrap and the PDO driver.

Click here to watch the tutorial trailer.

How to build a contact form - Part 1 Logo

Building a PHP contact form - Part 1

In this tutorial I will show you how to build a production ready and secure PHP contact form with the ability to send an email to you when it is filled in.

Click here for the part 1 article and PHP source code.

How to build a contact form - Part 2 Logo

Building a PHP contact form - Part 2

In part 2 we will be adding the phpMailer library to our contact form to use an external email server to handle the emails.

Click here for the part 2 article and PHP source code.

How to build a contact form - Part 3 Logo

Building a PHP contact form - Part 3

Part 3 of the building a PHP contact form from scratch series is where we will introduce PDO and MySQL to our contact form to store the requests for later use.

Click here for the part 3 article and PHP source code.

How to build a contact form - Part 4 Logo

Some articles you might also be interested in...

The most important plugin for your WordPress website
The most important plugin for your WordPress website

Google’s official WordPress plugin. Get insights about how people find and use your site, how to improve, and monetize your content, directly in your WordPress dashboard. If you have a WordPress website and would like to see how users find and use your website, Site Kit is right for you. To help you build, maintain, and grow your online presence, Site Kit gives you easy-to-understand metrics and actionable insights directly on your WordPress dashboard.

Read The Article
How to choose the right web hosting company for your business
How to choose the right web hosting company for your business

There are plenty of web hosting providers out there, and it may seem difficult to decipher the good from the bad. So I have put together a guide on how to find the right web hosting provider for your business and my personal recommendation of who to use depending on where you are in the world. Teaming up with the right web hosting service is more important than you think. It’s a partnership. Opt for the wrong one and you could find yourself struggling to get support, suffering downtime, or worse.

Read The Article
How to transcribe video files to text files using Amazon AWS Transcribe for Free.
How to transcribe video files to text files using Amazon AWS Transcribe for Free.

Transcribe a video to text using AWS. In this tutorial we will create a Word Document from a YouTube Video using the automatic speech recognition service from Amazon called, AWS Transcribe. Amazon Transcribe is an automatic speech recognition (ASR) service that makes it easy for developers to add speech to text capability to their applications.

Read The Article