Re: [PHP-DB] Storing duplicate checkbox values

2001-05-17 Thread Szii
] Sent: Wednesday, May 16, 2001 5:42 PM Subject: [PHP-DB] Storing duplicate checkbox values Ok This one has me stumped. I'm working on a survey for an author. There is already a total of 35 questions and their corresponding columns in the main table. She has three other questions that have

[PHP-DB] Storing duplicate checkbox values

2001-05-16 Thread John Starkey
Ok This one has me stumped. I'm working on a survey for an author. There is already a total of 35 questions and their corresponding columns in the main table. She has three other questions that have identical checkboxes, 30 each. I want to put them in the second table and just make reference to

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

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/input if ( $HTTP_POST_VARS ) { echo $cb_name['value']; } It's not coming up with anything. (Yeah, the norm