Results 1 to 2 of 2

Thread: submitting radiobuttons

  1. #1

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    submitting radiobuttons

    I have a set of radio buttons
    Code:
    <INPUT id=r2 type=radio name=r2 value=1>
    <INPUT id=r2 type=radio name=r2 value=2>
    <INPUT id=r2 type=radio name=r2 value=3>
    <INPUT id=r2 type=radio name=r2 value=4>
    <INPUT id=r2 type=radio name=r2 value=5>
    I can get the selected value from the querystring as long as one of them is selected.

    If none is selected, r2 does not even appear ion the query string

    I do not want to set a default option but I DO want to something to be submited eg 0 if nothing is selected
    Another light-hearted post from Guru

  2. #2

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237
    OK,OK you can all stop looking now

    I've sussed it myself.
    Another light-hearted post from Guru

Posting Permissions

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



Click Here to Expand Forum to Full Width