Re: [PHP] Testing people
Thats why I love this list... people share and help so unselfishly. Thanks Rich, sure didnt think of the way you wrote the solution till i read your code! Have a fab one! Richard Lynch [EMAIL PROTECTED] wrote: I thought of having a hidden text box everytime for each question... but that can be quite easily found out... any other suggestions? Don't send the correct answer to the browser at all. And don't tie the ABCD to the correct answer. $question[47] = Which animal flies around at night and sleeps in the day? $answer[13] = 'cat'; $answer[14] = 'dog'; $answer[15] = 'trout'; $answer[16] = 'bat'; $correct[47] = 'bat'; ? Your HTML could look like this: A [input] cat B [input] dog C [input] trout D [input] bat To test if the answer is correct: $q = $_REQUEST['q']; foreach($q as $index = $a){ if ($correct[$index] == $a) echo CORRECT; else echo INCORRECT: Correct is $correct[$index]; echo \n; } You could also use the index to $answer as the value with: $correct[47] = 16; [input] bat if ($correct[$index] == $a){ and all the other code the same. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
Re: [PHP] Testing people
Thanks! Will give it a look-see! Cheers! Dotan Cohen [EMAIL PROTECTED] wrote: It's not exactly what you describe, but you should take a look at: http://www.bigredspark.com/survey.html Dotan Cohen http://what-is-what.com 7 -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.
[PHP] Testing people
Hey all, this is a two part question but I need just one solution: 1. Can you recommend a good testing software where the choices are multiple choice (cross a button or radio button) if nothing great out there... will make this myself so, on to point 2: 2. I have noticed if you are displaying 4 (a-d) choices and the answer for question 10 (for example) is always on choice B it kind of sticks in the head and students dont really read everything they just memorize the location of the answer (maybe unconsciously) and click that.. i have an idea of making the answers jump around for example: once the correct answer for question 10 is B, if you reload the page, it would be C, reload again and its A (chosen randomly...) (real) example 2: What has two legs: a: an elephant b: a dog c: a bird d: a cat C is the correct answer of course... but if you reload the page: a: a bird b: an elephant c: a dog d: a cat now A is the correct answer. I thought of having a hidden text box everytime for each question... but that can be quite easily found out... any other suggestions? Thanks! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
Re: [PHP] Testing people
On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote: Hey all, this is a two part question but I need just one solution: Done. Go to http://avoir.uwc.ac.za/ and download Kewl.NextGen. Then install it and use the moduleadmin to install MCQ (multiple Choice Questions) module. It does everything (and more) that you need. If you need help, join either (or both) the users list and the developers list. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Testing people
how are you getting the answers? are they hard coded in html? are you pulling them from a database? if from a database, just order them randomly.. mysql_query(select answers from table where question = '10' ORDER BY RAND() ); i think this would randomize all of the results in the answer colum of the table. then you could use a while loop to display the answers with radio buttons on your test page. this may not be the best method and it will not work if your answers are html. - Original Message - From: Ryan A [EMAIL PROTECTED] To: php php php-general@lists.php.net Sent: Thursday, October 05, 2006 3:36 AM Subject: [PHP] Testing people Hey all, this is a two part question but I need just one solution: 1. Can you recommend a good testing software where the choices are multiple choice (cross a button or radio button) if nothing great out there... will make this myself so, on to point 2: 2. I have noticed if you are displaying 4 (a-d) choices and the answer for question 10 (for example) is always on choice B it kind of sticks in the head and students dont really read everything they just memorize the location of the answer (maybe unconsciously) and click that.. i have an idea of making the answers jump around for example: once the correct answer for question 10 is B, if you reload the page, it would be C, reload again and its A (chosen randomly...) (real) example 2: What has two legs: a: an elephant b: a dog c: a bird d: a cat C is the correct answer of course... but if you reload the page: a: a bird b: an elephant c: a dog d: a cat now A is the correct answer. I thought of having a hidden text box everytime for each question... but that can be quite easily found out... any other suggestions? Thanks! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Testing people
Thanks for replying guys. Paul, Will check out the links you sent me, If its really as good as you say... should save me a heck of a time coding it, thanks! Cheers! Ryan Paul Scott [EMAIL PROTECTED] wrote: On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote: Hey all, this is a two part question but I need just one solution: Done. Go to http://avoir.uwc.ac.za/ and download Kewl.NextGen. Then install it and use the moduleadmin to install MCQ (multiple Choice Questions) module. It does everything (and more) that you need. If you need help, join either (or both) the users list and the developers list. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
Re: [PHP] Testing people
On Thu, October 5, 2006 5:36 am, Ryan A wrote: 2. I have noticed if you are displaying 4 (a-d) choices and the answer for question 10 (for example) is always on choice B it kind of sticks in the head and students dont really read everything they just memorize the location of the answer (maybe unconsciously) and click that.. i have an idea of making the answers jump around So put them out in random order. [shrug] I thought of having a hidden text box everytime for each question... but that can be quite easily found out... any other suggestions? Don't send the correct answer to the browser at all. And don't tie the ABCD to the correct answer. ?php $question[47] = Which animal flies around at night and sleeps in the day? $answer[13] = 'cat'; $answer[14] = 'dog'; $answer[15] = 'trout'; $answer[16] = 'bat'; $correct[47] = 'bat'; ? Your HTML could look like this: A input type=radio name=q[47] value=cat / cat B input type=radio name=q[47] value=dog / dog C input type=radio name=q[47] value=trout / trout D input type=radio name=q[47] value=bat / bat To test if the answer is correct: $q = $_REQUEST['q']; foreach($q as $index = $a){ if ($correct[$index] == $a) echo CORRECT; else echo INCORRECT: Correct is $correct[$index]; echo br /\n; } You could also use the index to $answer as the value with: $correct[47] = 16; input type=radio name=q[47] value=16 / bat if ($correct[$index] == $a){ and all the other code the same. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Testing people
It's not exactly what you describe, but you should take a look at: http://www.bigredspark.com/survey.html Dotan Cohen http://what-is-what.com 7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php