Home arrow PHP arrow Developing a Short and Simple IQ Test Online Using PHP

Developing a Short and Simple IQ Test Online Using PHP

If you are a school administrator wanting to have an IQ test online, then this tutorial is for you. It can be used not only in the field of academics, but in the instances where you need to draw user interest to your website. An IQ test is a popular feature to incorporate into your website, and will attract a large amount of web traffic over time.

TABLE OF CONTENTS:
  1. Developing a Short and Simple IQ Test Online Using PHP
  2. Designing an IQ Grading System
  3. The HTML Test Form
  4. PHP Script to Process
By: Codex-M
Rating: starstarstarstarstar / 12
January 14, 2009

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Overview

The objective of the IQ test is to quantitatively measure intelligence. The measurement is what makes this test very popular, because one can be classified as an “Idiot," "Normal” or a “Genius.”

Developing an IQ test sounds complex, but I will make it very simple. The approach to designing a test involves considering the different aspect, not just focusing on the test questions.

The factors to consider when designing a test online include:

  1. Length – The test should be short, because it is very annoying to have a long test; no one really cares to answer it all. About 10 test questions will do. Of course you sacrifice the quality of the test, but it is the user experience which is more important in the online world.

  2. User-friendliness - This factor is very important. Forcing anyone to register first by entering personal details is a complete turn-off; many users will consider it a waste of time. Also, having fancy navigation and using a lot of graphics will slow down the web page and should be avoided.

  3. Speed of results  - I have seen online tests that require the user to register before letting them know their IQ. This is another waste of time and should not be considered as part of the design.

There are basically two approaches you can take when you design an IQ test online.

  1. PHP only

  2. PHP with MySQL database

The first one is recommended if you only need ten questions in the test. The second one is advised if you have a lot of questions to give. MySQL works as an “answer key” in this case. The PHP portion interacts with the browser and will be the one to ask questions to the user using a form. After that, it will connect to MySQL to determine whether the answers are correct. The PHP portion will then compute the final grade according to the results.

The scope of this article is to illustrate the first approach only. MySQL database examples will be illustrated in future tutorials.



 
 
>>> More PHP Articles          >>> More By Codex-M
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: