View Full Version : Check user input

02-16-2012, 04:16 PM

I was wondering how I can have a page where a user is asked a series of questions using check boxes, input forms or similar - and their input answers are then checked with the correct answer after this they are given a score.

For example:

[Form] What is 2 + 2 ?

[Input box] // IF enters "4" , THEN _ECHO_ 'You should take Mathematics!'
// IF enters ELSE _ECHO_ 'You should not take Mathematics'

I would greatly appreciate any help / tutorials / scripts. :)

Hope my question is clear.

02-16-2012, 04:20 PM
You'd ideally need to use a server side language like ColdFusion or php, a database, and a form and action page to process the user inputs and check them against the "answers" in your database.