Topic: Tutorial for newbies: Creating and manipulating web forms (Read 715 times)
aka J Love
Moderator Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« on: Dec 22, 2005, 06:09:59 AM »
Article written by Justin Love of J Love Web Design - www.justinlove.net
How to create a web form similair to the ones we use on this website, with many more tricks and tips as you go along!
First, you should determine what type of script you are going to use to process your forms. I prefer Matt's FormMail script as the newer versions are quite secure, and the web forms are easy to manipulate. This script is written in CGI/PL and is available in the 'Downloads' section of our website. There are also many alternatives in the downloads section such as PHP form scripts amongst others.
If your server doesn't recognize PERL but does recognize CGI, then simply rename the formmail.pl file to formmail.cgi, and it will work the same. Next, you should upload the formmail.cgi file to your webserver in the "cgi-bin" directory if your host requires CGI scripts be placed there (J Love Web Hosting does require this). It is most likely that most other webhosts require this.
Now, you should begin writing the form itself. FormMail has many different possible attributes, but we are going to cover the main ones, how they are used, and how to implement them.
5. You can also determine which fields should be required and which ones are optional. The variables in VALUE="" should be the same as those chosen below when you create the actual fields.
7. Now that we have set-up the pre-determined attributes for your form, we will create the necessary text-fields and buttons. For this example, we are creating 2 text boxes, a comment box, and 2 buttons. The size variable determines how long a text-box will be in characters.
9. Help on customizing the appearance of a form with tables can be found in our 'Articles' section. We also provide scripting help on the Support Forum. Article written by Justin Love of J Love Web Design - www.justinlove.net
aka J Love
Moderator Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« Reply #2 on: Dec 26, 2005, 07:50:28 AM »
i used to use a php script for them, i like them better as well but i cant find a good one that will fit my layout on my site at justinlove.net now, so i use formmail. got any ideas?