Forum Moderators: open
My code at the moment is:
<p><input type="radio" name="Q1" value="a">a
<br><input type="radio" name="Q1" value="b">b
<br><input type="radio" name="Q1" value="c">c
<br>Other (please state) <input type="text" name="Q1">
Please help!
Thanx!
Karen
First, don't name the radios the same as the textbox. It will confuse the form handler.
In your submit, you would validate the form before submitting. If a user checked a box and filled in the text box I would warn them with an "alert".
If not, then assign either of the values (radio or text) to a hidden field in the form.
It gets complicated after a while.