is there a way to do this
Posted: Thu Oct 20, 2005 12:07 am
Given a set of radio buttons with names radio1 , radio2 , radio 3 , ....
I want to be able to do this:
so that by changing the $number variable I can access any of the radio button
but this does not work, I tried escaping the characters, using variable variables, but this doesn't seem to work either.
I want to be able to do this:
Code: Select all
$number=1;
print "$_POST['radio".$number."']";but this does not work, I tried escaping the characters, using variable variables, but this doesn't seem to work either.