[jQuery] Re: (validate) checkbox group minlength -- same name == only 1 value posted to php

2009-07-06 Thread pimousse
It worked! Thanks! On Jun 30, 5:49 pm, James james.gp@gmail.com wrote: When you set your checkbox names, use the [] at the end of the name. For example: input type=checkbox name=myField[] value=1 / input type=checkbox name=myField[] value=2 / PHP will automatically convert that into

[jQuery] Re: (validate) checkbox group minlength -- same name == only 1 value posted to php

2009-06-30 Thread James
When you set your checkbox names, use the [] at the end of the name. For example: input type=checkbox name=myField[] value=1 / input type=checkbox name=myField[] value=2 / PHP will automatically convert that into an array. When you define your validation rules and messages, make sure to put