MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-11, 02:55
priya priya is offline
Private E-2
 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy php question bank

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.
Reply With Quote
Sponsored links
  #2  
Old 12-18-11, 22:59
markem's Avatar
markem markem is offline
Private First Class
 
Join Date: Jan 2008
Location: Houston, Texas
Posts: 85
Thanks: 16
Thanked 4 Times in 4 Posts
Default Re: php question bank

"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_hel...elp_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. :-)
__________________
10101010 - I'm always a confused bit.

Last edited by markem; 12-18-11 at 23:00.. Reason: Put in the Wikipedia reference line.
Reply With Quote
  #3  
Old 01-01-12, 17:48
llama91 llama91 is offline
Private E-2
 
Join Date: Aug 2007
Location: Kent, England
Posts: 27
Thanks: 5
Thanked 3 Times in 2 Posts
Default Re: php question bank

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 by llama91; 01-01-12 at 17:54.. Reason: wrote the JS segment wrong
Reply With Quote
Reply

Tags
php, question bank

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Action against the bank bonuses BILLMCC66 The Lounge 7 04-16-11 09:31
Redirect for CC and Bank logins Poppi22 Malware Removal 22 01-24-09 19:16
No! Not my Net Bank Account! Fred_G The Lounge 22 10-02-08 04:53
Careful which Bank you use!! Grumbles The Lounge 7 04-08-08 15:17
bank fraud trojan syrk Malware Removal 1 06-12-05 22:27


All times are GMT -5. The time now is 10:41.

MajorGeeks.Com Menu

MajorGeeks.Com \ 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 \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

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


All content Copyright MajorGeeks.com source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger