![]() |
Hidden Fields![]() ![]() ![]() ![]() ![]()
Hidden form fields are text fields that are not displayed in the browser and the user cannot modify their values. Forms with hidden fields can be generated dynamically by CGI programs as a result of processing data submitted by previous forms. The following example illustrates the use of hidden form fields along with JavaScript. The example has three different forms. The first form requests for the users name. The second form requests for the user age and the third one requests for the qualification. With Javascript the need to send three different forms to the server can be eliminated. A script can process all the three forms and consolidate the forms result before sending them to the server.The first HTML code defines a frameset with two frames.
<html> <frame src="hidden.html"> Save this file as frame.html. The second HTML code defines a form with three hidden fields. <html> <body> <input type="hidden" name="username" value=""> <input type="hidden" name="userqual" value=""> </form>
|
|
Domain NamesJAVASCRIPT Types of Variables Arrays Data Type Conversion Arithmetic Operators Logical and Comparison Operators Assignment Operators Ternary Operators Operator Precedence Assignment Statements If StatementsSwitch Statement Function Call Statement Try, Catch and Throw Statements The For Loop Java While Loop The Do While Loop Break and Continue Statements
String Methods Array Methods Objects, Methods and Properties The Boolean Object The Date Object The Global Object The Math Object
The Number Object Color Constants Hierarchy of Browser Objects Window Object Document Object History Object Navigator Object Buttons Check Box Radio Buttons Text FieldsWorking with Image Maps Creating Simple Animation Hidden Fields Working with Style Sheets An Example of HTML Graphics Replacement The <SPAN> Tag Positioning of HTML Content The <LAYER> TagWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |