initially i was having $chkMember[$key]="on" in my coding and it works. But it won't work for my in my web hosting server. So, i tried the above mentioned code, it doesn't work. Is there any other way to get the values of my checkbox and radio buttons? they are created upon some validation. So, i put them in an array. anyone? help!
how can i detect dynamic checkbox and radiobuttons value?
Moderator: General Moderators
how can i detect dynamic checkbox and radiobuttons value?
$_POST['chkMember[$key]']="on"
initially i was having $chkMember[$key]="on" in my coding and it works. But it won't work for my in my web hosting server. So, i tried the above mentioned code, it doesn't work. Is there any other way to get the values of my checkbox and radio buttons? they are created upon some validation. So, i put them in an array. anyone? help!
initially i was having $chkMember[$key]="on" in my coding and it works. But it won't work for my in my web hosting server. So, i tried the above mentioned code, it doesn't work. Is there any other way to get the values of my checkbox and radio buttons? they are created upon some validation. So, i put them in an array. anyone? help!
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Code: Select all
$_POST['chkMember'][$key]Originally you were assuming that register_globals was on... Anyway, the following should give you access to the same variable:
Code: Select all
$_POST[$chkMember[$key]];