I have a survey and one of the questions has radio buttons in it. If I dont fill in all the required fields an error message occurs and the last radio button is selected. So if someone selects lets say A and submits but an error message occurs then the button selected switches to E. I would like it to remain the same as it was selected.
Here is the code:
<INPUT TYPE="radio" NAME="progress" value="A" <?echo isset($progress['A']) ? 'checked' : ''; ?>> A - very big<br>
<INPUT TYPE="radio" NAME="progress" value="B" <?echo isset($progress['B']) ? 'checked' : ''; ?>> B - big<br>
<INPUT TYPE="radio" NAME="progress" value="C" <? echo isset($progress['C']) ? 'checked' : ''; ?>> C - medium<br>
<INPUT TYPE="radio" NAME="progress" value="D" <? echo isset($progress['D']) ? 'checked' : ''; ?>> D - small<br>
<INPUT TYPE="radio" NAME="progress" value="E" <? echo isset($progress['E']) ? 'checked' : ''; ?>> E - very small<br>