Xx...Tazer...xX Owner
Posts : 1239 T®ue Points : 1102678 T®ue Reputation : 40 Join date : 2009-09-02 Age : 31 Location : Chicago,Illinois
| Subject: [TuT] Contact form using HTML/PHP Tue May 18, 2010 5:20 pm | |
| This is my first post so I thought I'd share my tutorial. Welcome!
First of all let me start by saying PHP is a server side language, meaning it will not work (or even look right) if not run on a live server.
Okay let's get this moving.
So this is going to be really basic and probably not the best type of contact form. But it works and it's good experience. We will have two documents, one HTML (the actual form) and two, the PHP (the one that performs the tasks).
The HTML: Start by putting together all the necessary parts of you HTML document, then in the tag, add:
Code:
The form tag also needs to contain the referance to the PHP document, and the method being used. Use the attributes "action", to refer to the PHP document, and "method". ("post" is the smarter decision because it is generally safer to use)
Code:
| |
|