What part of the previous replies don't you understand? In what you have
below, you can know if the user checked the checkbox AFTER THE USER CLICKS
SUBMIT, by using:
<%
If Request.Form("chkBox") = "True" Then
Response.Write "True"
Else
Response.Write "False"
End If
%>
The value submitted in the form isn't an actual boolean value. It's merely
a string that says "true." You can give your checkbox a value "kajsdf" and
then do:
<% If request.form("chkBox") = "kajsdf" Then response.write "true" %>
Additionally, if you just want to know if the checkbox was checked, all you
really need to check for is if
Request.form("chkBox") <> ""
If the checkbox has a value, and the form is submitted with the checkbox
checked, the value of it will NOT be an empty string.
You may wonder what the point of having a checkbox value is then if it can
be anything arbitrary to find out if it was checked, but we can cover the
usefulness in a future post. :]
One last thing: As a math teacher, you should appreciate this, if you have
not yet heard about it.
http://www.foxnews.com/story/0,2933,105383,00.html
It's pretty amazing that a number that large...
Ray at home
"Tony" <na*****@zianet.com> wrote in message
news:14*****************************@phx.gbl...
On PageA I have:
<Input Type="CheckBox" Name="chkBox" Size="1" Value="True"
checked>
Which works fine!
On PageB I have;
<%If Request("chkBox")=True Then
Response.Write "True"
Else
Response.Write "False"
End If%>
This is where I am having trouble.
Can I see if the Check Box has been checked in VBScript or
do I have to use Java?, where I am very poor.
This is the fifth time I have submitted this. Either I am
having a difficult time understanding what I have been
instructed or it might be more difficult than people
think. I am not a very good programmer, I am a math
teacher and loved assembler. This object stuff confuses
me.
Thanx in Advance
Tony Zine