Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hidden fields

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello!

My html code is as follows:

<html>
<head>
<title>Create Exam Tests</title>
</head>
<h2><center>Exam Tests</center></h2>
<hr>
<h3>Please enter the details of the exam test you wish to create:</h3>
<br>
<br>
<form method=&quot;post&quot; action=&quot;
Module Name: <select name=&quot;module&quot;>
<option>select module
<option>CT 437 Distributed Systems
<option>CT 438 E-Commerce
<option>CT 413 Industrial Applications
<option>CT 412 Research and Professional Development
<option>CT 431 Business Object Technology
<option>CT 434 Computer-Supported Cooperative Work
<option>CT 487 Computer Security and Cryptography
</select>
<br>
<br>
<br>
..........................
<p><input type=&quot;submit&quot; wrap=hard value=&quot;Submit&quot;>
<input type=&quot;reset&quot; value=&quot;Reset&quot;></p>

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

Can anyone tell me how I can create a hidden field for the 'module' list? Is it possible?

Thank you!!
 
I am writing a CGI script, and I want to pass the variable from one script to another. One way of doing this is to create hidden fields in my HTML page. I know that for text boxes or textareas you can do something like that:

<FORM ACTION=&quot;URL&quot;>
<BR>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;game&quot; VALUE=&quot;Module&quot;>
<INPUT TYPE=&quot;text&quot; NAME=&quot;move&quot; SIZE=2>
</FORM>

The problem is that for the variable I need, I use a pop-up list, which is like that:

Module Name: <select name=&quot;module&quot;>
<option>select module
<option>CT 437 Distributed Systems
<option>CT 438 E-Commerce
<option>CT 413 Industrial Applications
<option>CT 412 Research and Professional Development
<option>CT 431 Business Object Technology
<option>CT 434 Computer-Supported Cooperative Work
<option>CT 487 Computer Security and Cryptography
</select>

So, where can I specify the hidden field?
 
<option value=&quot;wibble&quot;> visible text </option>

is that what u mean? Dean Owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top