473,387 Members | 3,810 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,387 software developers and data experts.

facing problem asp quiz form - not defined

i am trying to make a quiz form, below is my code. In this it displayes data correctly but when i click on first option i want that value to be asigned to output textbox but it shows the value in msgbox and gives error not difined :
Expand|Select|Wrap|Line Numbers
  1. <form name=frmQz action="MQz.asp" method=post>
  2. <table height="50%" valign="top"  style="BORDER-COLLAPSE: collapse" bordercolor="#d3d3e2"  align="center" bgcolor="#FFFFFF" cellPadding=0  width="80%" cellSpacing=0 border=1>
  3. <tr>
  4. <td width="5%"   colspan=3 bgcolor="#6200F4" height=40 align=middle class="whitebold">Note:Select One Option Out Of 4 Options Provided</td>
  5. </tr>
  6. <%if not rQ.eof then%>
  7. <%n=1%>
  8. <input type=hidden name=MemID value=<%=MemID%>><%=MemID%></td>
  9. <input type=hidden name=QuizDate value=<%=rQ("QDate")%>></td>
  10. <%while not rQ.eof%>
  11. <tr>
  12. <td width="5%"  class="text"><%=rQ("srno")%>
  13. <input type=hidden name=TotQ value=<%=rQ("srno")%>></td>
  14. <input type=txtsrno name=txtsrno id=txtsrno value="<%=rQ("srno")%>"></td>
  15. <td width="45%"  class="text"><%=rQ("Question")%></td>
  16. </tr>
  17. <%Opt=rQ("Srno")%>
  18. <%response.write Opt%>
  19. <tr><td width="5%"  class="text"></td><td class="text"><input type=radio id=<%=n%> name="<%=Opt%>" vlaue="<%=rQ("Opt1")%>" onclick="document.frmQz.output.value=<%=Opt%>"><%=rQ("Opt1")%> </td></tr>
  20.  
  21. <tr><td><input type=textbox name=srno id=srno value=<%=rQ("srno")%>></td>
  22.  
  23. <tr><td width="5%"  class="text"></td><td class="text"><input type=radio id=<%=n%> name="<%=Opt%>" vlaue="<%=rQ("Opt1")%>" onclick="document.frmQz.output.value=<%=Opt%>"><%=rQ("Opt2")%> </td></tr>
  24. <tr><td><input type=textbox name=srno id=srno value=<%=rQ("srno")%>></td>
  25.  
  26. <tr><td width="5%"  class="text"></td><td class="text"><input type=radio id=<%=n%> name="<%=Opt%>" vlaue="<%=rQ("Opt1")%>" onclick="document.frmQz.output.value=<%=Opt%>"><%=rQ("Opt3")%></td></tr>
  27. <tr><td><input type=textbox name=srno id=srno value=<%=rQ("srno")%>></td>
  28.  
  29. <tr><td width="5%"  class="text"></td><td class="text"><input type=radio id=<%=n%> name="<%=Opt%>" vlaue="<%=rQ("Opt1")%>" onclick="document.frmQz.output.value=<%=Opt%>"><%=rQ("Opt4")%></td></tr>
  30.  
  31. <tr><td><input type=textbox name=srno id=srno value=<%=rQ("srno")%>></td>
  32. <td><input type=textbox name=txtans id=txtans value="<%=rQ("answer")%>"></td>
  33. <td><input type=textbox name=output id=output></td>
  34. <%    
  35. n=n+1
  36. rQ.movenext
  37. wend
  38. rQ.close
  39. set rQ=nothing
  40. %>
  41. <%end if%>
  42. <tr>
  43. <td colspan=3 bgcolor="#FFFFFF" align=center class="whitebold"><input type=submit value="submit"></td>
  44. </tr>
  45. </table>
  46. </form>
  47.  
  48.  
pls help thanks in advance.
Apr 7 '10 #1
2 1498
jhardman
3,406 Expert 2GB
I'm afraid the issue is in the javascript. I will move this to the javascript forum for you.

Jared
Apr 10 '10 #2
Dormilich
8,658 Expert Mod 8TB
I would need to the the JavaScript portion to tell something off it.
Jun 24 '10 #3

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

Similar topics

4
by: C. David Rossen | last post by:
Hello: I found a script for a simple multiple choice quiz that I would like to tailor to a quiz that I want to post on a website. The quiz I want to use can be found at : ...
4
by: DJ | last post by:
Here are my answers for quiz 2 - how well did I do? 1. Which of the following types cannot be used to subscript an array? a. short b. char c. float d. all of the above types may be used to...
1
by: DJ | last post by:
Here are my answers for quiz 3 - how well did I do? 1. If the statement: scanf("%d %d", &N1, &N2); returns the value 1, what do we know about what was read into the variables N1 and N2?
2
by: Sketcher | last post by:
Hi, I am trying to create a quiz, Code is as follows: <html> <head> <title>Quiz</title> </head> <BODY> <Center><TABLE cellSpacing=3 cellPadding=0 border=0>
5
by: Vandana Rola | last post by:
Hello Everyone, I am a beginner in Javascript.I want to create fun quiz tool using javascript (no database). The feature of that tool is every question has five choices. The user needs to select...
4
by: DAL | last post by:
I want to build my kid a program that cycles through questions (using a label for the question), and lets him choose one of two radio buttons for the right answer. How do I get every set of...
11
by: admin | last post by:
Hi all, First time poster here... I'm a webmaster and I'd like to add a simple script to my website which will allow users to fill in a brief multiple choice questionaire, and then provide a...
1
by: stevenjs | last post by:
Greeings, all, Flash 8 has quiz templates which are coded for multiple choice, true/false, text statement, and matching types of questions, along with hotspots and probably anoher type I am...
8
by: danjoplin | last post by:
I've only recently started javascript and I'm a java programmer so I'm sure I've done something obvious that I can't see. Basically this goes with an html document which has a number of questions on...
3
by: 1051109210 | last post by:
<table class="special3" align="left" width="75%" height="65%" > <form> <table width="50%" align="center"> <tr align="right"> <td></td> <td><a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.