t a thoughtdont' know if it will work for you or not...
> Jeff
>
>
>
> Brent Baisley
>
> r.com> cc: <[EMAIL PROTECTED]>
> Subject: Re:
r.com> cc: <[EMAIL PROTECTED]>
Subject: Re: [PHP-DB] Dealing with
Unchecked Checkboxes
If you want to have an answer for each item, you should use yes/no radio
buttons. With checkboxes you only get "yes" answer, as you are aware.
The assumption is that you could care less about "no" answers since you
are only interested in the "yes" set.
Checkboxes "reveal" yes answers, radio but
IL PROTECTED]>
> To: "Micah Stevens" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, October 26, 2002 10:01 PM
> Subject: Re: [PHP-DB] Dealing with Unchecked Checkboxes
>
>
> > Try to assign a value for each of these variables, or elem
ECTED]>
Sent: Saturday, October 26, 2002 10:01 PM
Subject: Re: [PHP-DB] Dealing with Unchecked Checkboxes
> Try to assign a value for each of these variables, or elements of array.
> If it is checked let's say is =1,otherwise=0. Then grab the whole set of
> variables with GET_VAR
Try to assign a value for each of these variables, or elements of array.
If it is checked let's say is =1,otherwise=0. Then grab the whole set of
variables with GET_VARS or something like this. Create the new array in
the page where you insert data, and then use if's to insert data in your
tables.
Unchecked checkboxed do not return a value. They don't return a NULL or
empty string or anything. So what you have to do is check to see if the
variable is set. If it is set, then it's checked, if it's not set, then
it's unchecked.
Kinda sucks if your variable names are dynamic, I just erase th
Hey all, I'm trying to get my head around checkboxes. I can insert "checked"
checkboxes into a DB no problem but I get an error when the checkboxes are unchecked.
I've used the following to try and handle unchecked checkboxes but I still get the
error "query was empty" can anyone point me in t