Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6189865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:29:14+00:00 2026-05-24T02:29:14+00:00

I do want to create a Quiz like on this site Quiz How can

  • 0

I do want to create a Quiz like on this site

Quiz

How can I done this using php and jQuery? or is there other way to do this not using flash

I do got a idea from this and my problem is how to implement the timer with this

Creating a Quiz with jQuery

answer and made by @Fatih

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:29:15+00:00Added an answer on May 24, 2026 at 2:29 am

    Apparently I don’t know my router bits; however, making a quiz can be really easy to build (hard-coded) or really hard to build (database-driven). The first is difficult to change later on while the second is quite easy.

    It really depends what you want to do, both are quite doable with php and jQuery.

    1. I would setup a database of questions, answers, and user-responses.
    2. Then I’d createa a few php pages, one for the user to view /quiz.php and one for my jQuery to post data to /ajaxhelp.php (accessed by $.post())
    3. ajaxhelp.php would return JSON data based on the post paramaters. Mabye a question + 4 answers for “nextQuestion” then the jQuery would generate the form with a few radio boxes for each answer
    4. The user picks their answer, and then you $.post() it back; ahaxhelp.php checks the database to see if that was marked as the correct answer, and returns the result.
    5. jQuery gets the “nextQuestion” and makes a new form
    6. Display summary of results

    edit

    After your comment about static data, this simple html page should get you started:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script>
    
            <script type="text/javascript">
                var q1wa = 
                { 
                    Question: 'Question One Text', 
                    Answers: 
                    [ 
                        { AText: 'Answer1 Text', RightAnswer: true },
                        { AText: 'Answer2 Text', RightAnswer: false },
                        { AText: 'Answer3 Text', RightAnswer: false }
                    ]
                };
    
                $(document).ready(function () {
                    $('#question').html(q1wa.Question);
                    for(var i = 0; i < q1wa.Answers.length; i++) {
                        $('#answers').append(q1wa.Answers[i].AText + "<br />");
                    }
    
                });
        </script>
        </head>
        <body>
            <div id="question"></div>
            <div id="answers"></div>
        </body> 
    </html>
    

    It should be noted, that with this method, your “correct” answer is visible to anyone who cares to do a View Source, but this is a good starting point. It would also not be hard to incorporate a php portion to keep the answer secret by doing answer validation server-side instead of client-side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
I want create a pdf using iText. The method which does this is a
i want create jqGrid like this I could divid body jqGrid i write this
I want create a plugin in jquery. this is my html code : <div
i want to create a quiz application. the questions should be randomly selected from
I want create an application with animate button? how can i do? after click
I want create module which update list of usb devices automatically (not only mass
I am trying to create an Online Quiz script like expert rating test on
I want create listview without layout_height. I mean if there is 100 item in
I'm trying to create a math quiz and I only want the user to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.