Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 20th Feb 2014, 11:41 AM   #1
Warrior Member
 
Join Date: 2011
Posts: 24
Thanks: 3
Thanked 0 Times in 0 Posts
Default
How to display questions in batch
Share on: 
fb share twitter share gplus share more share

Hi everyone,
I'm creating a computer based test application(cbt) with php and mysql.
I want to ask. How do i display the questions in batches, like, Mathematics, how do i display 15 questions in separate pages when i have a total of 50 questions in mathematics and still be able to submit all of them with one input button?
heroecitadel is offline  
Unread 20th Feb 2014, 03:20 PM   #2
Bananas are Yellow!
Registered Member
War Room Member
 
David Beroff's Avatar
 
Join Date: 2013
Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4
Default
Re: How to display questions in batch
Share on: 
fb share twitter share gplus share more share

The easiest thing to do is to pass the prior responses as hidden fields. Better to manage them in your database for a given session, but that's not absolutely necessary.

Put MY voice on YOUR video: AwesomeAmericanAudio.com
David Beroff is offline  
Unread 21st Feb 2014, 07:51 AM   #3
Active Warrior
War Room Member
 
Join Date: 2012
Posts: 53
Thanks: 2
Thanked 7 Times in 7 Posts
Default
Re: How to display questions in batch
Share on: 
fb share twitter share gplus share more share

You can have a few DIVs, where each div represents a page and has 15 questions. All divs are hidden by default except the first one. Then make a 'Next' button below each div and have a click event listener for it. Once clicked, the script will hide all DIVs and unhide the next DIV, or page. At the last page user can simply do a post submission.
sautaja is offline  
Unread 21st Feb 2014, 10:13 AM   #4
Warrior Member
 
Join Date: 2011
Posts: 24
Thanks: 3
Thanked 0 Times in 0 Posts
Default
Re: How to display questions in batch
Share on: 
fb share twitter share gplus share more share

Thank you very much sautaja, that was great!
heroecitadel is offline  
Closed Thread


Bookmarks

Tags
batch, display, questions


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:01 AM.