Search
Recommended Sites
Related Links






   

Informative Articles

Creating Personal Web Sites (Part 2)
This is the second part of a two-part article about creating a web site on the Internet and the tools that you will need to do it. Some basic terminology that you should take a look at before proceeding further: Web Page: A document that contains...

Get Your Keywords In The Right Place & Have The Search Engines Love Your Pages!
Note: You're free to use this article in any medium, so long as it is reproduced in its entirety, including the resource box. [Begin Article] ============================================= Get Your Keywords In The Right Place & Have The Search...

How PHP Can Help Save You Time And Mistakes.
(c)2004 by Ben Rourke Here's a really simple way... to maintain and speed up your web site development. As your web site grows, so does the problem of maintaining it become more complex. Even a two or three page site can have a lot of detail in...

The Web Designer's Toolbox
When you're a web designer, there are lots of little programs that you'll gradually accumulate to make your life that little bit easier. When you've spent hours doing something by hand and you're dreading ever having to do it again, it can be a...

Why Use a Web Design Template?
Why Use a Web Design Template? By Julia Jackson What is a Website Template? Many smart and savvy businesses are choosing to use a website template, and avoiding employing a professional designer. Why? Well, there are clear benefits: saving on...

 
USER FEEDBACK, HTML FORM

After going through this celestial section you'll be able to make your own HTML feedback forms so that the visitors can send you feelers about what are their intentions vis-à-vis you and your Web site, and other sundry things that may or may not concern you.

As usual we have a tag called, illuminatingly,
. Whatever lies within belongs to this tag and is going to be a part of its definition as a whole.

The basic infrastructure of a user feedback form manifests itself like this:






Please enter your name:




Please enter your email:




Please enter your comments:
< extarea>






Good! Now let us take the bull by its horns, and ponder over the individual parts one-by-one in a scholarly manner. An average
has the method, name, and action attributes. There might be more tags, but in this nascent stage of Form learning, let's stick to these three attributes. A method can have the value "post" or "get". "Post" is used when we are just "submitting" the information, but, "get" is used when we are retrieving information according to the information "submitted". A good example of "get" is the search engine box, where you enter the word to be searched, and then the program displays the information retrieved.

The attribute name is not vital to the existence of a form, but later on, in a SCRIPT, if you desiderate to access the individual components of a form (for example, validating the user input), then you need it.

Action is where all the action is. This attribute holds the name of the file that is going to do something to the fields entered by the user. It holds the functions, and the "hidden" fields definitions in order to perform some task. The above file, process_form.pl (a PERL file), we assume, emails you the details entered by the user. This file mostly lurks in the CGI-BIN folder of your server, and if you are hosting your Web site on a commercial server, the host company provides this sort of file.

Ok now, hidden fields. Generally what conspires is, the PERL file needs an email address so that the entered information can be dispatched to that address. Then it might sound decent to give a subject to that future email, so that wherever it goes, the recipient can make out what sort of email it is. It would look extremely impolite if you do not appreciate all the pain taken by the visitor - hence, it calls for a thank you page redirection.

In this manner, there could be tens of "hidden" field definitions.



displays an empty field box of size 25 characters. And so on.

"Submit" tells the browser to invoke the file "process_form.pl" and "Reset" empties all the fields in case you want to re-enter all the values. Later on, we'll explore other means to manipulate the "submit" field so that we can make sure that the person entering the information into the fields is not a complete dud.

A radio button is a GUI component that lets the user select one, and only one option from a given list of options.

You can display a radio button as a field like this:


Would you like to receive promotional emails from me?
Yes
No

Both the input definitions have the same name because in a particular set of multiple radio buttons, only one choice can be made. You can have as many radio buttons as you want by giving them single name but varied values.

The following portion lets the user choose an option from a drop down list:


Your profession is:


Saying in the clichéd manner, last, but not the least, is a check box which is displayed by the following code:


Acceptable


Please remember that all this paraphernalia comes within
.



About the Author
Amrit Hallan is a freelance web designer. For all web site
development and web promotion needs, you can get in touch with
him at http://www.bytesworth.com. For more such articles,
visit http://www.bytesworth.com/articles and
http://www.bytesworth.com/learn You can subscribe to his
newsletter [BYTESWORTH REACHOUT] on Web Designing Tips & Tricks
by sending a blank email at Bytesworth-subscribe@topica.com

Sign up for PayPal and start accepting credit card payments instantly.