php question bank

Discussion in 'Software' started by priya, Nov 27, 2011.

  1. priya

    priya Private E-2

    please help me with this.

    how to write a question bank with 5 question and the next question must appear after the user has chosen an answer. how the result will be displayed?

    thankyou.
     
  2. markem

    markem Private First Class

    "The Gods help those who help themselves."

    The phrase originated in ancient Greece, occurring in approximately equivalent form as the moral to one of Aesop's Fables, Hercules and the Waggoner, and later in the great tragedy authors of ancient Greek drama. Although it has been commonly attributed to Benjamin Franklin, the modern English wording appears earlier in Algernon Sidney's work. http://en.wikipedia.org/wiki/God_helps_those_who_help_themselves

    What it means to you is - you first have to give it a try before asking for help. Take a whack at doing this and if you can't make it work - then come and ask for help. Be sure to post the program you wrote also as proof that you have at least tried to do this. :)
     
    Last edited: Dec 19, 2011
  3. llama91

    llama91 Private E-2

    Without attempting to do all of the work for you,
    an idea might be to create each question and answer box, or selection, in seperate div's.

    And as a CSS property for these DIVS (they would have to have seperate ID's so you can alter this individually with JavaScript) "visibility:hidden;"

    Then you can have Javascript, either being called by using the "onchange" event.
    so the script is called when the content of a text box or input is changed

    Then that script can handle validation.
    This validation script would be in charge of making sure the answer is ok, and then changing the visibility property of the next question.
    something like:

    document.getElementByID(Element ID)style.visibility = 'visible';


    I hope this helps you out, feel free to say if you need more help, or whether my information was both irrelevant and unhelpful
    =]
     
    Last edited: Jan 1, 2012

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds