Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Check user input

    Hello,

    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.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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.
    Teed


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •