Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: Online Quizzes

  1. #1
    Senior Member ULTiMATE's Avatar
    Join Date
    Nov 2002
    Location
    England
    Posts
    124
    Member #
    308
    I was wondering on how these were made, and how these kind of things would be made in php, since i want to get a load put onto my site when i finish the coding needed

    http://guru.theotaku.com/

  2.  

  3. #2
    Junior Member Cinders117's Avatar
    Join Date
    Mar 2003
    Location
    Kent, OH
    Posts
    19
    Member #
    833
    That one is made with javascript, which most are I think.
    As for using php, I dunno, maybe set all of them to a value and add it all up and do something like
    PHP Code:
    if($score 10) {
    echo 
    'You're like...';
    } else if(10 < $score > 20) {
    echo '
    You're like something else';
    }
    etc... 

  4. #3
    Junior Member
    Join Date
    May 2003
    Location
    New York
    Posts
    8
    Member #
    1414
    I'll go on the assumption that you already know some basic php... You basically have a page with some radio buttons (little circle with dot)... The user submits the answer and if it's correct (Use an if statement on the next page), add one to the number of correct answers... Keep doing that and then divide the number correct by the number of questions and multiply by 100 to get a percentage.

    You can do it in many ways, cheap or complex.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:37 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com