Results 1 to 2 of 2

Thread: checkbox

  1. #1
    Join Date
    Dec 1969

    Default checkbox

    I have a check box like this<BR><BR>&#060;input type="checkbox" name="option1" value="Web Hosting"&#062;Web Hosting<BR><BR><BR>After pressing submit in the form I call another asp page where I want to know whteher the check box is checked or not.<BR><BR>How to do that. i tried this but didnot work<BR><BR>if (Request.form("option1").checked) then<BR> Response.write("checked")<BR>else <BR> Response.write("checked")<BR>end if

  2. #2
    Join Date
    Dec 1969

    Default RE: checkbox

    if Len(Request.Form("option1")) &#062; 0 then<BR> &#039; A checkbox with the name "option1" was checked<BR>else<BR> &#039; It wasn&#039;t checked.<BR>end if<BR><BR>There&#039;s actually a FAQ on this, and it goes into more detail about how to pass the checked status through using JavaScript.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts