www.webdeveloper.com
Results 1 to 4 of 4

Thread: Quiz Trouble

  1. #1
    Join Date
    Nov 2009
    Posts
    51

    Quiz Trouble

    The radio buttons do not work.
    Code:
    <html>
    <body>
    Bryan's Quiz
    <br />
    <img src="http://loriworks.webatu.com/wikitest/images/Bryan.png" />
    <br />
    <br />
    Hi there! I'm bryan, I have given you tips in this tutorial, now its time to see how you did!
    <br /> Just simply answer the question, and click submit once all questions were answered!
    <br /> Here we go!
    <br />
    <br /> 
    <form action="">
    <div>
    Which is the <b>WRONG</b> way of listing tables? <br />
    A. <input type="radio"
    name="A1" value="1" > A = {"lol", "This", "Is", "Fun"}
    <br>
    B. <input type="radio"
    name="B1" value="1" > A = {"lol," "This," "Is," "Fun"}
    </div>
    <br />
    <div>
    Which is the <b>RIGHT</b> way of defining tables? <br />
    A. <input type="radio"
    name="A2" value="2" /> A = {"lol", "This", "Is", "Fun"}
    <br>
    B. <input type="radio"
    name="B2" value="2" /> A {"lol", "This", "Is", "Fun"}
    </div>
    </form>
    
    
    
    </body>
    </html>
    Last edited by Kevin's Dog; 02-01-2010 at 11:22 AM.

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    Radio buttons of the same group need to have the same name.

    http://www.w3schools.com/jS/tryit.as...yjs_form_radio
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  3. #3
    Join Date
    Nov 2009
    Posts
    51
    Quote Originally Posted by aj_nsc View Post
    Radio buttons of the same group need to have the same name.

    http://www.w3schools.com/jS/tryit.as...yjs_form_radio

    Yes, ok.
    so, how do i call them with php to see if the answer is right?

  4. #4
    Join Date
    Dec 2005
    Posts
    2,984
    Google comes in real handy at a time like this:

    http://www.google.ca/search?rlz=1C1C...+radio+buttons
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles