We're not going to discuss the actual code of the contact form in this tutorial, but it is important to understand how the form actually works and we want to cover that first.  If you missed our previous article, please see the Advantages of using a Contact Form tutorial.

When a visitor goes to your contact page on your website, they will need to fill out the form. Once the have filled out the form fields, they will click the button to submit. Once submitted, the information in the fields will automatically be sent via email to you. On the server side, once the submit button is clicked, typically a Perl script or php file is ran. This reads the request and sends it to your email address. Don't worry if you do not have a in-depth understanding of php or Perl since it is not required to makea contact form work.

When you receive the email, all the questions your visitor filled in will be in the email. Each time you receive an email it will be in the same format. This simplifies reading the email and even orgainizing them. since every email will have the same subject line, you can sort the emails to filter into their own folder in your email account.

After the form is processed by the server, you then have the ability to control where the visitor is re-directed to. You can have them return to the contact from page or even be redirected to a custom thank you page. Typically, you will want to redirect them to a diffrent page where you can acknowledge you have received their request and will contact them shortly. Setting up a contact form takes longer than a simple mailto tag however the benefits we mentioned in the previous tutorial make it worth the extra time and effort.      

Please check the next article on Creating a Contact Form with FormMail. For more information on this course please visit Adding Contact Forms.

Continued Education in Course 202: Adding Contact Forms
You are viewing Section 2: How Contact Forms Work
Advantages of using a Contact Form
Creating a Contact Form with FormMail
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!