The HTML Form - Hidden Input Tag - II

The HTML Form - Hidden Input Tag - II
In the first part of this tutorial we discussed the HTML form tag called the hidden input tag. Now, let's take a look at the code.

<input type="hidden" name="requested_URL"
value="WishList.html">
< Left angle bracket
inputElement name
type Type of input tag. This input tag is set to hidden.
nameID given to the information passed to the processing program
valueThe information you wish to send to the processing program
> Right angle bracket
Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.

As you can see in the chart above, this HTML input tag does not have a closing </input> tag. Like most HTML form tags, this tag begins with a < left angle bracket and closes with the > right angle bracket. The element name is input indicating that this tag is an input tag. Also there are three attribute/value pairs.

The Type Attribute
The type attribute controls the type of input field that will appear in the web form. Of course, in this case the value for this attribute is set to hidden and therefore nothing will appear in the form.

The Name Attribute
The second attribute is the name attribute. The value given to this attribute is a unique ID that the processing program will use to identify the information attached to this tag. In the example, I have set the value of the name attribute to "requested_URL" which will tell the processing program that the information attached to this tag will be the URL for the webpage that was requested when the visitor was sent to the Sign In form.

The Value Attribute
The value attribute will "carry" the hidden information to the processing program. Whatever information that you place between the quotation marks for this attribute/value pair will be the URL of the requested webpage. In the example I have set the value of the value attribute to "WishList.html". This tells the processing program that the Sign In form was initiated (or called) when the customer clicked on the link to view his personal Wish List.

|




This site needs an editor - click to learn more!



RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 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 BellaOnline Administration for details.