logo
g Text Version
Auto
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Society & Culture
Sports
Travel & Leisure
TV & Movies

dailyclick
Bored? Games!
Postcards
Astrology
Take a Quiz
Rate My Photo

new
Jokes & Riddles
Astronomy
Philosophy
Public Health
Canadian Culture


dailyclick
All times in EST

Autism Spectrum Disorders: 4:00 PM

Full Schedule
g
g HTML Site
Elizabeth Connick
BellaOnline's HTML Editor

g

The HTML Form - Hidden Input Tag - I
Guest Author - Diane Cipollo

In this tutorial we will discuss a special type of HTML form tag called the hidden input tag.

As you have already learned, when your website visitor enters information into the web form and clicks the Submit button, the user's information is passed along to a processing program. But suppose you want to pass other information to the processing program that is not supplied by the user. You will do this with the hidden input tag.

Let's take a look at an example. At most commercial websites a customer can enter his personal account area by clicking on one of several links. He may click on the My Account link. But if he is not signed in already, he will first be taken to the Sign In form. Or perhaps he clicked on the Wish List link. Again, if he is not signed in, he would still be sent to the same Sign In form. Once the customer signs in, he is then redirected to the webpage that he originally requested. In order to redirect your customer to the correct webpage, you will need to tell the processing program what webpage the person originally requested. You will use the hidden input tag to pass this information to the processing program along with the username and password supplied by the customer. Then if the username and password are correct, the program will use the "hidden" information to redirect the customer to the correct webpage.

I should point out that the hidden input tag isn't really "hidden" at all. It is very visible when anyone clicks View > Source (Internet Explorer) or View > Page Source (NetscapeR) and reads the HTML code for your webpage. So you will not want to use the hidden input tag to pass information that needs to be secure such as credit card numbers. The term hidden comes from the fact that this tag tells the web browser NOT to put anything in the webpage form but to pass the information invisibly to the program.

In the next article, we will take a look at the HTML code for this type of input tag.

|



RSS | Previous Features | Site Map


Content copyright © 2008 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Elizabeth Connick for details.

Digg! g delicious Save to Del.icio.us

g


For FREE email updates, subscribe to the HTML Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor

g features
How To Set Up a Mailto Link

Using CSS to Set a Background Image

Choosing the Right Font, Part Two

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Driving Amount
Much more
Slightly more
Slightly less
Much less

g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2008 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor