checked AND unchecked

Ask a Question related to ASP, Design and Development.

  1. #1

    Default checked AND unchecked

    Hi again,

    Within a submitted page that has mutilple checkboxes with
    the same name, the request.form("mycheckboxes") has a
    comma separated list of the values of all the ones
    checked....
    but I also need to know which ones are not checked... How
    can I know that ?

    Thanks.
    Joel Brabant Guest

  2. Similar Questions and Discussions

    1. ext to look for checked out files
      I am looking for an ext that will look for checked out files when you go to close dreamweaver and ask if you want to check them in. We have several...
    2. Shown as checked out / not checked out
      Hi, There is a page that was updated by a member of our web site team months ago and she hasn't done anything with it since but it still says...
    3. Saving checkbox states (checked or unchecked)?
      Hello. I'm creating a basic form with checkboxes for "yes/no". Is there a way for the state of the checkboxes to be saved by the user (using regular...
    4. Template - checked out but not showing as checked out.
      I have a template that points to folders in our secure folder. I try to make a change to the template and say to update the files and it says...
    5. Error Report Services --> Some Boxes Stay Unchecked!!
      Win2k3 In the error reporting menu (in my computer) some of the boxes stay unchecked, even if you check them and apply the settings. 1 -...
  3. #2

    Default Re: checked AND unchecked

    It's the rest of them ;)

    You need to either go get them again, or include all the values in a hidden
    field.

    I'm assuming your checkboxes are coming from a database. So you could
    requery the database and compare the returned values with those submitted.

    OR

    On your form, you can put in a hidden field with all the values in it.
    <input type=hidden name=AllPossibleCheckboxValues value="1, 2, 3, 4, 88">


    "Joel Brabant" <joel.brabant@tembec.com> wrote in message
    news:105001c3813e$67eebb00$a001280a@phx.gbl...
    > Hi again,
    >
    > Within a submitted page that has mutilple checkboxes with
    > the same name, the request.form("mycheckboxes") has a
    > comma separated list of the values of all the ones
    > checked....
    > but I also need to know which ones are not checked... How
    > can I know that ?
    >
    > Thanks.

    Tom B Guest

  4. #3

    Default Re: checked AND unchecked

    They will not be returned in the form collection if they are not checked.
    How are the checkboxes being created? Can you not pull from the same source
    to get that information?

    You could use a hidden input on your form and then compare the values:

    <inpt type="checkbox" name="chk1" value="1">
    <inpt type="checkbox" name="chk1" value="2">
    <inpt type="checkbox" name="chk1" value="3">
    <inpt type="checkbox" name="chk1" value="4">
    <input type="hidden" name="allPossibleValues" value="1,2,3,4">

    Ray at work


    "Joel Brabant" <joel.brabant@tembec.com> wrote in message
    news:105001c3813e$67eebb00$a001280a@phx.gbl...
    > Hi again,
    >
    > Within a submitted page that has mutilple checkboxes with
    > the same name, the request.form("mycheckboxes") has a
    > comma separated list of the values of all the ones
    > checked....
    > but I also need to know which ones are not checked... How
    > can I know that ?
    >
    > Thanks.

    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139