Current location: Hot Scripts Forums » Programming Languages » PHP » Handling quiz answers


Handling quiz answers

Reply
  #1 (permalink)  
Old 11-06-09, 02:29 AM
mayankdb mayankdb is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Handling quiz answers

hi I am relatively new around here. I am all thumbs in all sorts of programming. i am trying to build a small application for computer-based tests with mulitple-choices questions (with radio buttons). i have designed the layout in html, but i haven't the faintest idea how would the value of clicked radio button can be displayed. more specifically, if i have five questions, each with four choices (radio buttons) i want that when the user clicks "submit", i should get a table of the values of radio buttons clicked. after that i will manipulate it (copy it to a spreadsheet) and calculate scores. anybody can help? i don't understand things beyond simple html, so pl explain like i were a moron. thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-06-09, 07:57 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Please start a new thread for unrelated qiuestions.

I've moved this to the PHP section as I think this question is bettter suited here. If you don't have a PHP-capable server, please ask the appropriate [super]moderator to move it back to the JavaScript section (I can't do that.)

To address your question; You could submit the form to a serverside PHP script which bascially gets a list of all the checked boxes. That list can then be validated, printed back to the browser, stored in a database or file, or emailed somewhere if you prefer that. If the data is stored in a database or file, all the collected answers could be exported at once to say a comma separated value list readable by spreadsheet programs.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-06-09, 10:09 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
I would do a search for "quiz" on www.hotscripts.com. I'm sure there's a BUNCH of solutions, many of which are open source and/or freeware that would do exactly what you want.

But as TwoD mentioned, if you have a PHP -enabled server, chances are you have the ability to setup a database (MySQL) along with it. A lot of script authors will usually offer an installation service as well to get you up and running for a small fee.
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-06-09, 01:39 PM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-07-09, 02:14 AM
mayankdb mayankdb is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
i sure need to thank you folks TWoD, Rocket, Jc... as i said, i'm all thumbs so php and java are no different to me than are coke and pepsi! i'll try and again get back. you techie guys will fall off your chair laughing if i tell you what i do... i provide a text box against each answer choice... once the student is finished, i manually copy all the text boxes to excel. since excel can't read the values inside the text box, i again copy Individual values to the next column and then finally using the 'sum' and 'if' functions (that's coding for me) i calculate the final scores. if by chance anyone has a better way of excel understanding the text boxes, it would reduce my load drastically... thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 11-09-09, 08:50 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
Hey, no prob! Gotta start somewhere. If this takes up quite a bit of your time, there's definitely some better options than the redundancy you deal with now. Since EXCEL supports CSV (comma separated values), you could very easily take these forms and shape the data into CSV, allowing you to avoid manually typing that stuff every time. This is one of many possibilities.
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Quiz Script V.1.1LAUNCHES 24 HOURS arcadegamescript General Advertisements 0 08-17-09 07:23 PM
How to Create a Quiz with Free Quiz Template in Adobe Flash WPeterson Flash & ActionScript 0 10-22-08 11:54 PM
Scoring a Quiz cesarcesar PHP 5 07-09-08 04:36 PM
Quiz Algo cesarcesar PHP 1 03-20-08 06:25 PM
Specialized quiz which tallies multiple responses - and has no wrong answers jeremyandrebecca Script Requests 1 02-20-08 05:51 PM


All times are GMT -5. The time now is 04:43 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.