Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    104
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to combine Text Area with Radio button on a form?

    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!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    253
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •