#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0

    Exclamation I can't activate grade me in this code


    Hello programmers:
    The idea: Am making multiple choice quiz.
    each correct answer has a value for example: 10

    Platform: Blogspot.

    My problem: After coding the quiz, I need the student, for example, or any kind of visitors to check his/her answers (scourse) if they are correct but I can't do this. I don't know what do I need. I need your help.

    The code is here:

    [CODE]
    Code:
    <!-------- Quiz Starts Here -------->
    <h3>My Quiz</h3>
    
    <form action="http://www.result.com/builder/result.aspx?max=0&q=2" method="post">
    <input type="hidden" name="QuizTitle" value="My Quiz" />
    <input type="hidden" name="QuizReturnLink" value="myblog.blogspot.com" />
    
    <ol>
    
    <li>Type your question1 here.</li><br />
    <input type="radio" name="ans1" value="0"/>choice1<br />
    <input type="radio" name="ans1" value="0"/>choice2<br />
    <input type="radio" name="ans1" value="0"/>choice3<br /><br />
    
    <li>Type your question2 here.</li><br />
    <input type="radio" name="ans2" value="0"/>choice1<br />
    <input type="radio" name="ans2" value="0"/>choice2<br />
    <input type="radio" name="ans2" value="0"/>choice3<br /><br />
    
    </ol>
    
    <p><input type="submit" value="Grade Me" onclick="this.value='Please wait...'" /></p>
    </form>
    <!-------- Quiz Ends Here -------->
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Am not sure I need Javascrip code, or only a massage that shows the grades.

    By the way, here an exmple of java script code which appearse after doing the quiz in a new page. Maybe you want to check it out.

    Code:
    <html>
    <head>
    <title>Thanks for taking the quiz.</title>
    
    <link rel="stylesheet" type="text/css" href="/includes/quizbox.css" />
    
    <script type="text/javascript">
    <!--
    if (window!= top)
    top.location.href=location.href
    // -->
    </script>
    
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-4407917-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>
    
    </head>
    
    <body>
    
    <table width="600" align="center" cellpadding="10" cellspacing="10">
    <tr>
    <td colspan="2" align="center" bgcolor="#f0f0f0">
    <h3>Thanks for taking the quiz.</h3>
    <h1>Score: 0</h1>
    
    
    
    <p><font size="5"><a href="javascript:history.back()">Try Again</a></font></p>
    </td>
    </tr>
    <tr>
    	<td valign="top">
    SCORING<br>	
    	
    	</td>
    	<td valign="top">
    YOUR SCORE STATISTICS<br>Size: 0, Min: Infinity, Max: -Infinity<br>Range: -Infinity, Middle Of Range: NaN<br>Average: NaN, Mode: NaN<br><br>First Quarter: NaN, Median: NaN, Third Quarter: NaN<br>Sample Variance: NaN, Standard Deviation: NaN<br><br>PATTERN SIGNATURE<br>	
    	</td>
    </tr>
    </table>
    
    </body>
    </html>
  4. #3
  5. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,009
    Rep Power
    2791
    Welcome to DevShed. I have no idea what your question is.
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

    W3Fools - A W3Schools Intervention.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Originally Posted by Winters
    Welcome to DevShed. I have no idea what your question is.
    MY question is:
    How can I make (grade me) button work????
    It doesn't work.
    And then, student don't know what he scored.
  8. #5
  9. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,009
    Rep Power
    2791
    That is because there is only a form and no code to process the data. Are you asking for help or are you asking for someone to write the code for you? This looks very suspiciously like homework.
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

    W3Fools - A W3Schools Intervention.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Originally Posted by Winters
    That is because there is only a form and no code to process the data. Are you asking for help or are you asking for someone to write the code for you? This looks very suspiciously like homework.
    Homework!! what homework?
    If you don't want to help me, you don't have to.
    Give a chance to other helpers without disappointing me.
    I think this site gathers programmers. I was looking for someone to help me.
    I brought this code to help others too to understand me to make it easy for them to try the code and then modify it if they want.

IMN logo majestic logo threadwatch logo seochat tools logo