Re: [PHP-DB] Storing duplicate checkbox values

2001-05-17 Thread Szii
I got around it by using a "standard" naming scheme. (This will work if you have LESS than $num_items, but not more. If you have LESS, then it'll just hit the "not set" while loop more.) Oh, ignore the They're just there to keep Win-based systems from trying to interpret the code. $num_item

Re: [PHP-DB] Storing duplicate checkbox values

2001-05-16 Thread John Starkey
> Yeah. I'm gonna have to go with this one. Thanks. But one other question: > what should the variable be echoing. > > <.input type="checkbox" name="cb_name['value']">this here option > > if ( $HTTP_POST_VARS ) { > echo $cb_name['value']; > } > > It's not coming up with anything. (Yeah, the no

Re: [PHP-DB] Storing duplicate checkbox values

2001-05-16 Thread John Starkey
Thanks Ron and Miles, > First off, it sounds to me like you are doing this a non-expandable way. > Unless you never ever plan to set up a survey again I would not hard code > columns for each question. This is one of "those" gigs. Needed to be done a week ago, by the person that started it, a mo

Re: [PHP-DB] Storing duplicate checkbox values

2001-05-16 Thread Miles Thompson
I'm just winging this off the top of my head. If you are absolutely sure that the order of the checkboxes will NOT CHANGE, and that is a very risky assumption. And assuming that you have an array to hold the values for the checked box, why not just store the value of the index for each questio