Getting values from radio buttons named dynamically
I have "n" number of rows being returned by a sql statement. Works great. For every row returned, I would like the user to pick an option (either option 'a' or option 'b')
As standard practice a while loop is used to iterate through each row, and I attempt to name my options by the row number. However, I run into problems when I attempt to get the value of the radio button the user has selected.
I can't seem to dynamically get the value of the radio button named 1 in the first loop (or any loop with it's appropriate name) of the where clause. Or in other words: I'm looking to see why 'choice' is not getting the value selected by the user in
Wow, I can't believe you should wait this long to have the moderator review the question before posting. With such a long lag-time, I was able to work through different approaches to get this to work.
I dumped the idea of dynamically radio buttons, and just went with static names. It worked.
Bookmarks