How to Create a Custom PHP Contact Form with Validation

PHP is a great scripting language that allows many dynamic functions in your site. You can create custom contact forms, form validation, and email responses using PHP. This article will explain the basics in creating an email form that validates the inputs, produces errors when inputs are typed incorrectly, and send an email to you Read More >

How to use PHP to Connect and Retrieve Data from MySQL

In our previous set of articles, we’ve created a simple 2 page website that allows users to submit comments about the page they were looking at. In this article, we’re going to show you how to use PHP to Connect to and Retrieve Data from MySQL. Step 1. Create our SQL Query to grab all Read More >

Reviewing sample PHP code that interacts with a MySQL Database

In our previous articles, we’ve created a simple website that allows for users to submit comments about an article. In this article we are going to walk through what happens when someone submits a comment in our test website. Step 1 – Look at the data currently in the database Before we post any comments Read More >

Using PHP to INSERT Data into a Database

In this tutorial series, we’re using PHP and MySQL together to create a comment form so we can receive and display user comments on a website. We’ve already setup our database and our HTML form, and so our next step is to actually INSERT the user’s comment to the database once it has been submited. Read More >

Using the php Include Function to Reuse Code

In this tutorial series, we’re creating a simple 2 page website in which each page allows users to post comments. In our previous articles, we’ve created and setup our database, and we’ve created the html form that will allow users to type in and submit their comments. In this article, we now need to incorporate Read More >

Creating a simple HTML Form to get user comments

Content: In this tutorial series, we’re showing you how to interact with a MySQL Database using php. We’re creating a simple 2 page website that allows users to post comments on either page, and then shows all comments that have been posted. In our previous article we created a database and setup a table to Read More >

Setting up a Database to Handle Form Data

In this tutorial series, we are going to create a website at PHPandMySQL.inmotiontesting.com. This website is going to have 2 pages, and each page is going to allow for comments. When users submit a comment, we’ll want to keep track of the following information: Their name Their email address Their website Their actual comment The Read More >