View Full Version : How to combine Text Area with Radio button on a form?

02-22-2005, 04:04 PM
Hello, I am trying to combine Text box with a Radio button. Let me give you an example for better understand:

Favorite Station

<INPUT TYPE="radio" NAME="fav_radio" VALUE="WPLJ">WPLJ
<INPUT TYPE="radio" NAME="fav_radio" VALUE="WLIR">WLIR
<INPUT TYPE="radio" NAME="fav_radio" VALUE="WZRK">WZRK
<INPUT TYPE="radio" NAME="fav_radio" VALUE="WBAB">WBAB
<INPUT TYPE="radio" NAME="fav_radio" VALUE="WNEW">WNEW
<INPUT TYPE="radio" NAME="fav_radio" VALUE="OTHER">OTHER (Text box next to it to specify the "other" radio station)

Now, if the visitor selects Other, I want to have a text box next to it in which they can specify which Radio station they listen to.

Is that possible? If so, how can it be done? Can I also do the same with Check boxes? How so? Thank you very much for your help!

02-22-2005, 04:30 PM
<INPUT TYPE="radio" NAME="fav_radio" VALUE="OTHER">OTHER <input type="text" name="other_fav_radio">

you would just be entering a normal text line.
same with any other elements.
just use a descriptive name value so you know what is happening when you receive the data.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum