Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-28 Thread Graeme McLaren
t a thoughtdont' know if it will work for you or not... > Jeff > > > > Brent Baisley > > r.com> cc: <[EMAIL PROTECTED]> > Subject: Re:

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-28 Thread Jeffrey_N_Dyke
r.com> cc: <[EMAIL PROTECTED]> Subject: Re: [PHP-DB] Dealing with Unchecked Checkboxes

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-28 Thread Brent Baisley
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

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-26 Thread Mihail Bota
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

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-26 Thread Graeme McLaren
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

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-26 Thread Mihail Bota
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.

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-26 Thread Micah Stevens
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

[PHP-DB] Dealing with Unchecked Checkboxes

2002-10-26 Thread Graeme McLaren
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