Can't determine if checkbox is checked

B

Bob L

I'm using VB script to determine how this form is filled out:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Name</title>
</head>
<body>

<font <p style='margin-left:'>Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type='text' name='UID' size='10' style='font-family: Times New Roman;
font-size:
8pt'><p style='margin-left:'>Password:
<input type='password' name='PWD' size='8' style='font-size: 8pt;
font-family: Times New Roman'>
</p>
<p style='margin-left:'>Remember this logon?
<input type ='checkbox' name='CBREM' value='OFF'>&nbsp;&nbsp;
<input type='submit' value='LOGON' name='Submit' style='font-size: 8pt;
font-family: Times New Roman'></p>
</form>
</body>

</html>

I can get the value of both UID and PWD using Session("UID") and
Session("PWD") but I can't find the status of CBREM.
I've tried both Session("CBREM") and Request.Form("CBREM") but no joy. How
can I determine if the checkbox is checked?
 
T

Thomas A. Rowe

If you use the checkbox default value which would be On, if check then you can test for On, in your
case test for Off, which means it has been checked.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
B

Bob L

Thanks!
Thomas A. Rowe said:
If you use the checkbox default value which would be On, if check then you
can test for On, in your case test for Off, which means it has been
checked.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top