[PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Dallas Thunder
Consider the following form in a HTML file: ... input type=checkbox name=box value=1 input type=checkbox name=box value=2 input type=checkbox name=box value=3 input type=checkbox name=box value=4 ... Now I'm posting this form into a PHP script. The problem is I can't change that HTML file.

Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread CPT John W. Holmes
Consider the following form in a HTML file: ... input type=checkbox name=box value=1 input type=checkbox name=box value=2 input type=checkbox name=box value=3 input type=checkbox name=box value=4 ... Now I'm posting this form into a PHP script. The problem is I can't change

Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Frode
[...snip...] Which means I can't modify the code above into PHP prefered style: input type=checkbox name=box[] value=1 input type=checkbox name=box[] value=2 [...snip...] Why is this the preferred style, and where can I read more about it? Frode Lillerud, Norway -- PHP General

Re: [PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread CPT John W. Holmes
- Original Message - From: Frode [EMAIL PROTECTED] [...snip...] Which means I can't modify the code above into PHP prefered style: input type=checkbox name=box[] value=1 input type=checkbox name=box[] value=2 [...snip...] Why is this the preferred style, and where can I read more