[PHP] RE: How to handle multiple value checkboxes

2002-08-30 Thread COQUET,JULIEN (Non-HP-France,ex1)
name your checkboxes like so input type=checkbox name=mycheckbox[] value=1 on your result page you'll end up with an array of checked boxes. If the boxes are not checked they dont appear in the array. for quick and dirty debugging on your result page: ? print 'pre';

[PHP] Re: How to handle multiple value checkboxes

2002-08-29 Thread Matthias Stürmer
hi lon thats because for the same variable can be submitted only one value. make an array (like variable[]) out of your variable and then parse it with foreach() for working with the values selected by the user. hope you understand what i'd like to say. my english is not too good. bye, matt