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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I know if a checkbox is checked?

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Hello all,

I have a checkbox inform1. When this form1 is submited to another page, how can I find out if that checkbox in form1 is checked or not?

I've try Request(&quot;chk&quot;) = True, Request(&quot;chk&quot;) = &quot;on&quot;, Request(&quot;chk&quot;) <> &quot;&quot;. None of these works.

Can someone please help me?
 
Nevermind. If the checkbox is checked, I will get Request(&quot;chk&quot;)=&quot;on&quot;


 
The request.form(&quot;checkboxname&quot;) will return the value(s) (separated by commas if more than one) in the &quot;value&quot; property.

-Phil
fillup07@hotmail.com
If my post was helpful, please give me a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top