|
Posted by M on 04/25/06 19:55
Hello,
I would like to get a value for a non selected checkbox in a form.
Imagine my form contains :
<input type='checkbox' name='t[0]' value='1'>
<input type='checkbox' name='t[1]' value='1'>
When I analyse $t, if first checkbox is not selected and second is, I have :
$t[0] has no value. $t[1] equals 1
and count($t) equals 1
I would like to find a way to get :
$t[0] equals 0. $t[1] equals 1
and count($t) equals 2
Any idea ?
Thanx
M
Navigation:
[Reply to this message]
|