473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

validate a set of radio buttons in a quiz

Expand|Select|Wrap|Line Numbers
  1. <table class="special3" align="left" width="75%" height="65%" >
  2. <form>
  3. <table width="50%" align="center">
  4.  
  5. <tr align="right">
  6.  
  7. <td></td>
  8. <td><a href="http://geocities.com/blhc_69/testingignore.html">Logout</a></td>
  9. </tr>
  10.  
  11. <tr align="left"><td>
  12. <table border value="1">
  13. <td><a href="http://geocities.com/blhc_69/second2.html">Home</a></td>
  14. </table></td>
  15. </tr>
  16.  
  17. <tr>
  18. <th class="row"><font size="+4">SCIENCE QUIZ</font></th><th></th>
  19. </tr>
  20.  
  21. <tr><td>1.A person who studies the substances in living things might best be called:</td></tr>
  22. <tr><td><input type="radio" name="group1" checked value="a">biochemist</td></tr>
  23. <tr><td><input type="radio" name="group1" value="b">homeopath</td></tr>
  24. <tr><td><input type="radio" name="group1" value="c">naturopath</td></tr>
  25. <tr><td><input type="radio" name="group1" value="d">pharmacist</td></tr>
  26. <tr><td><br/></td></tr>
  27.  
  28. <tr><td>2.The study of animal or human movement is called:</td></tr>
  29. <tr><td><input type="radio" name="group2" checked value="a">physiotherapy</td></tr>
  30. <tr><td><input type="radio" name="group2" value="b">chiropractory</td></tr>
  31. <tr><td><input type="radio" name="group2" value="c">physical education</td></tr>
  32. <tr><td><input type="radio" name="group2" value="d">biomechanics</td></tr>
  33. <tr><td><br/></td></tr>
  34.  
  35. <tr><td>3.A scientist who studies how electrical signals affect the human body might be a:</td></tr>
  36. <tr><td><input type="radio" name="group3" checked value="a">electrician</td></tr>
  37. <tr><td><input type="radio" name="group3" value="b">radiologist</td></tr>
  38. <tr><td><input type="radio" name="group3" value="c">physiotherapist</td></tr>
  39. <tr><td><input type="radio" name="group3" value="d">biophysicist</td></tr>
  40. <tr><td><br/></td></tr>
  41.  
  42. <tr><td>4.The study of substance properties and how they react is called:</td></tr>
  43. <tr><td><input type="radio" name="group4" checked value="a">chemistry</td></tr>
  44. <tr><td><input type="radio" name="group4" value="b">pharmacy</td></tr>
  45. <tr><td><input type="radio" name="group4" value="c">physics</td></tr>
  46. <tr><td><input type="radio" name="group4" value="d">biology</td></tr>
  47. <tr><td><br/></td></tr>
  48.  
  49. <tr><td>5.The study of stars, planets and other heavenly bodies is called:</td></tr>
  50. <tr><td><input type="radio" name="group5" checked value="a">astrology</td></tr>
  51. <tr><td><input type="radio" name="group5" value="b">physics</td></tr>
  52. <tr><td><input type="radio" name="group5" value="c">astronomy</td></tr>
  53. <tr><td><input type="radio" name="group5" value="d">telescopy</td></tr>    
  54. <tr><td><br/></td></tr>
  55.  
  56. <tr><td><input type="submit" value="submit my quiz!" onclick="checkscore(group1)"><input type="reset" 
  57.  
  58. value="Clear my quiz!"></td>
  59. </table>
  60. </form>
  61. </table>
how do i validate all these buttons?? i want to check the answers then dsplay the outcome of this quiz
Apr 10 '09 #1
3 1737
hsriat
1,654 Expert 1GB
Dear 1051109210,

What do you mean by validate here?
Apr 10 '09 #2
@hsriat
nvm its alright figured out . thanks
(i meant that i want it to check the score of the quiz)
Apr 11 '09 #3
acoder
16,027 Expert Mod 8TB
You do realise that anyone can view the source to see the answers?
Apr 13 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave | last post by:
Hi, there used to be a simple javascript quiz builder in builder.com, with which I made the page whose code is given below. I would like to tweak this so that there are only three (not 4) answer...
2
by: Dave | last post by:
I have a page which uses JavaScript to create form elements using document.createElement('input'), etc.. Both Firefox and IE have no problem accomplishing this and when the form is submitted all...
2
by: NishSF | last post by:
Would anyone have any suggestions/javascript code so that if one clicks the Radio Button "Yes" below he has the option of selecting any of the six CheckBox below. If the user clicks on Radio Button...
1
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and no's at the bottom of the quiz (if the user selects...
11
by: TokyoJ | last post by:
I run a small camp in Alaska for kids and my director is asking for a web form. Could someone please have a look and offer some advice on where I'm making mistake(s)? I'm using the RegExp function...
9
sanjay123456
by: sanjay123456 | last post by:
Dear Friends , i have i problem that let say suppose i am working in index.php and <form name="myform" method="POST" action="<?php echo $_SERVER; ?> ">
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
1
by: anuva | last post by:
Hi, I am new to asp and developing a quiz portal. I need a help for this. I am using MS Access database which is having a table called 'Quiz_Master' having fields such as 'Quiz_id',...
3
by: sethupnr | last post by:
hi. I need to create a Quiz program in flash. The question's answers are given as radio button for selection. There is also 2 button "next" and " previous". How can i do this. By "previous"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.