Is checkbox checked?

Results 1 to 2 of 2

Thread: Is checkbox checked?

  1. #1
    MuddMuse Guest

    Default Is checkbox checked?

    I have a list of checkboxes. I want to populate an array with the name of the checkbox if it is checked. What is the syntax?<BR><BR>for each varItem in Request.Form<BR> if Request.Form(varItem) = ????? then <BR> Redim Preserve arrPrefs(i)<BR> arrPrefs(i) = varItem<BR> end if<BR> i = i + 1<BR>next

  2. #2
    Mark Smith Guest

    Default RE: Is checkbox checked?

    checkbox1.value will tell you whether the checkbox is checked.<BR><BR>so you could say:<BR><BR>varitem1= checkbox1.value<BR>varitem2= checkbox2.value<BR>varitems = varitem1 & varitem2 & ....etc<BR><BR>

Posting Permissions

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