Re: [PHP] Handling Large Check Box Data

2006-05-18 Thread Richard Lynch
On Wed, May 17, 2006 1:21 pm, Rahul S. Johari wrote: > I¹m a little confused as to what¹s the best way to handle this. > I have a form which, apart from lots of other fields, has a set of 25 > ­ 30 > Check Boxes, each of which asks the user for some kind of information > which > the user can check

Re: [PHP] Handling Large Check Box Data

2006-05-17 Thread Kevin Murphy
I did something similar recently. Basically I have one MySQL field to handle several dozen checkboxes, my situation though was where the checkboxes are numerically sequential though so I am not sure if this helps. I also had only a couple hours to do this from start to finish so I am sure t

Re: [PHP] Handling Large Check Box Data

2006-05-17 Thread Jochem Maas
Martin Alterisio wrote: 2006/5/17, Rahul S. Johari <[EMAIL PROTECTED]>: ... You should consider using MySQL special column type SET: http://dev.mysql.com/doc/refman/5.1/en/set.html Or encoding each checkbox status as a binary bit in an integer I was going to suggest this also- if n

Re: [PHP] Handling Large Check Box Data

2006-05-17 Thread Martin Alterisio
2006/5/17, Rahul S. Johari <[EMAIL PROTECTED]>: Ave, I¹m a little confused as to what¹s the best way to handle this. I have a form which, apart from lots of other fields, has a set of 25 ­ 30 Check Boxes, each of which asks the user for some kind of information which the user can check or leave

Re: [PHP] Handling Large Check Box Data

2006-05-17 Thread Brad Bonkoski
Well, listing all the values in a comma separated list in the DB would be fairly simple to parse, check out: http://www.php.net/manual/en/function.explode.php As far as what is better depends on many things... 1). Maintaining the code, might be better to have each check box have its own field,