Hidden Fields

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
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>
<head>
<title>Hidden Fields</title>
</head>
<frameset cols="20"border=0>
<frame src="form1.html">
<frame src="hidden.html">

<frame src="hidden.html">
</frameset>
</html>

Save this file as frame.html. The second HTML code defines a form with three hidden fields.

<html>
<head>
<title>Hidden Fields</title>
</head>

<body>
<form action="" name="controlForm" method="post" taret="_top" onSubmit="return open()">

<input type="hidden" name="username" value="">
<input type="hidden" name="userage" value="">

<input type="hidden" name="userqual" value="">

</form>
</body>
</html>



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.