Hi,
small and annoying problem here.
ok, i've got a bit of script that refuses to work properly.
I have five of these with incremental numbers as names (in order for the value of the input to equal the value in the sql database).
<input type=\"$structA\" name=\"A1\" value=\"checked\" $trueA1></td><tr>
However, $structA is a variable of three inputs checkbox, text and radio, used for different types of input on a quiz. However, as the name increments, radio buttons aren't linked by name, so i have the choice, have users only select one radio button (eek), or have the buttons work but not the bit that inserts the checked box into the sql database (as much eek).
I've tried name=\"A\" subname=\"1"\ (increments) but I can't get the if | else's right to see if the radio button has been checked and then set the value of A1 to 'checked'. I've read back on javascript onClicks, but i've got no clue when it comes to java (have looked). If someone would be so nice, what's a good way of getting around having two names for a button, one that links them together, and one that specifies the name that the value should be posted to?
AdvaThanksnce