|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.|
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.