Skip to content


||||

HTML Forms Are Our Friends

This is a very short tutorial on the creation of a HTML form,that used the PHP form processor located in the PHP part of theforum. First, I’d like to explain how forms work, because it’snot always as obvious as one would think. Basically, the HTMLform is used to store the information into variables, such asname, email address, and comments, etcetera. These variable arethen sent to something called a form processor and processedinto any format you choose, they are then sent to the addressmentioned in the form processor.

Once you read this tutorial you may be able to understand it alittle better.

First off, let me show an example of a simply HTML form thatasks the person for the name, email, and comments.

Contact Us

You’ll notice I included some HTML tags to show you were thisform would normally be found, even know most of you wouldalready know. Let’s break this down a little bit now.

This tag begins the form and tells the browser that anythingafter this is a form, and to recognize it as this. the Action inthis form is process.php which can be found in the PHP board ofthe forum on my website. The action will always be the file thatyou wish to use to process the information on the form, so thatit’s readable. The method is used to POST, or place, theinformation from the form onto the form processor, or in thiscase process.php.

This is a simple text box. The type tells the HTTP that it’s atext box, and the name gives the name of the variable to bestored.