Ask a Question related to ASP, Design and Development.
-
Joel Brabant #1
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
-
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... -
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... -
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... -
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... -
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 -... -
Tom B #2
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
-
Ray at #3
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



Reply With Quote

