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 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2008
    Posts
    41
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Radio boxes help...

    OK.. I don't know why I'm having problems with this, but when I make some radio boxes, I can click all 4 of them, not just one. Its making me mad because I want users to only be able to click one of them. Here is the code:

    Code:
    <form action="page.php" method="POST">
    <input type="radio" name="100k" value="100k" />100k <br />
    <input type="radio" name="1mil" value="1mil" />1 Mil <br />
    <input type="radio" name="5mil" value="5mil" />5 Mil <br />
    <input type="radio" name="10mil" value="10mil" />10 Mil <br />
    <input type="submit" name="submit" value="Send" />
    <input type="reset" name="reset" value="Clear" />
    </form>
    There is the code for the form part. Any help would be greatly appreciated.

  • #2
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    Code:
    <form action="page.php" method="POST">
    <input type="radio" name="same" value="100k" />100k <br />
    <input type="radio" name="same" value="1mil" />1 Mil <br />
    <input type="radio" name="same" value="5mil" />5 Mil <br />
    <input type="radio" name="same" value="10mil" />10 Mil <br />
    <input type="submit" name="submit" value="Send" />
    <input type="reset" name="reset" value="Clear" />
    </form>
    all names must be the same to be a group, try that!!

  • #3
    New Coder
    Join Date
    Mar 2008
    Posts
    41
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jcdevelopment View Post
    Code:
    <form action="page.php" method="POST">
    <input type="radio" name="same" value="100k" />100k <br />
    <input type="radio" name="same" value="1mil" />1 Mil <br />
    <input type="radio" name="same" value="5mil" />5 Mil <br />
    <input type="radio" name="same" value="10mil" />10 Mil <br />
    <input type="submit" name="submit" value="Send" />
    <input type="reset" name="reset" value="Clear" />
    </form>
    all names must be the same to be a group, try that!!
    Sweet, it worked! Thanks a lot.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    method="POST" is not a valid statement in any XHTML flavor, by the way: all attribute literals must be in lowercase.


  •  

    Posting Permissions

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