Hi devinemke,
What I am trying to pull off is to store the radio button selected in the related field position.
My table has the following fields (and radio buttons in the same order).
|---Favorite--|--Very Good--|---Good---|-----Poor-----|--Never heard of them--|
|--Button 1--|---Button 2---|-Button 3-|--Button 4----|--------Button 5-----------|
And after I get the POST, if they chose Button 4 I get ..
[radiobutton] => Array
(
[3] => 1
)
Then I would have to build a bunch of loops to test the value and store it in the correct field.
I thought it would be easier to retain the buttons position, relative to its position in my form (which mirrors my table).
So the above submission would give me...
[radiobutton] => Array
(
[0] => 0
[1] => 0
[2] => 0
[3] => 1
[4] => 0
)
and then I could insert into my table..
0,0,0,1,0
Is that a better explaination of what I am looking to do?
I know I could do javascript to keep them from selecting more than 1 checkbox, but I have a table that is built dynamically with 45 different rows, and was trying to keep from shooting myself with combining the Java and the dynamic form.
What do you think?
Thanks,
Don