TonyCronin
Programmer
I am looking to try and create a form in html that will chnage depending on whether user ...
I have a one checkbox that I would like to use to determine whether or not a text field is displayed.. here is what I have done so far. I have used OnClick but checkbox doesn't refresh... please help
<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<p align="center">
<script>
var param1
</script>
</p>
<form name="PageOne" method="post" action="">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="225" height="35">Please enter your Login</td>
<td width="275" height="35">
<input type="text" name="Login">
</td>
</tr>
<tr>
<td width="225" height="35">Do you have an UserID</td>
<td width="275" valign="middle" height="35">
<input type="checkbox" onClick="param1=1" name="HaveID">
</td>
</tr>
<% If param1 = 1 Then %>
<tr>
<td width="225" height="35">Please enter your UserID</td>
<td width="275" height="35">
<input type="text" name="UserID">
</td>
</tr>
<% Else %>
<tr>
<td colspan="2">*If you do not have a User ID, please contact your local
<a href="mailto:%20">NT administrator</a> in order to create one. </td>
</tr>
<% End If %>
<tr>
<td width="225" height="35">
<div align="right">
<input type="reset" name="Submit2" value="Clear">
</div>
</td>
<td width="275" height="35">
<input type="submit" name="Submit" value="Next">
</td>
</tr>
</table>
</form>
</body>
</html>
I have a one checkbox that I would like to use to determine whether or not a text field is displayed.. here is what I have done so far. I have used OnClick but checkbox doesn't refresh... please help
<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<p align="center">
<script>
var param1
</script>
</p>
<form name="PageOne" method="post" action="">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="225" height="35">Please enter your Login</td>
<td width="275" height="35">
<input type="text" name="Login">
</td>
</tr>
<tr>
<td width="225" height="35">Do you have an UserID</td>
<td width="275" valign="middle" height="35">
<input type="checkbox" onClick="param1=1" name="HaveID">
</td>
</tr>
<% If param1 = 1 Then %>
<tr>
<td width="225" height="35">Please enter your UserID</td>
<td width="275" height="35">
<input type="text" name="UserID">
</td>
</tr>
<% Else %>
<tr>
<td colspan="2">*If you do not have a User ID, please contact your local
<a href="mailto:%20">NT administrator</a> in order to create one. </td>
</tr>
<% End If %>
<tr>
<td width="225" height="35">
<div align="right">
<input type="reset" name="Submit2" value="Clear">
</div>
</td>
<td width="275" height="35">
<input type="submit" name="Submit" value="Next">
</td>
</tr>
</table>
</form>
</body>
</html>