View previous topic :: View next topic |
Author |
Message |
slick Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/155298905545589d9986ab5.gif)
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Wed Apr 19, 2006 1:08 pm Post subject: Bist Du *? - selbstgemacht |
|
|
Hier nochwas für Testwillige...
http://www.deruwe.de/files/gentoo/wissenstest/fragen.php
Da so ein Test einfach zu stricken ist hier der passende (sicher nicht perfekte) Code dazu, falls jemand selbst so ein Umfrage bauen möchte.
English users please go here so see the "international version"
Code: | <html><head><title></title></head><body><form method="post" action="<?php echo $PHP_SELF; ?>">
<?php
$fragen = array(
array(
array('Erste Frage?',2), // Frage, Nr. richtige Antwort (arraykey+1)
array( // Antworten
'falsche Antwort',
'richtige Antwort',
'falsche Antwort',
'falsche Antwort'
)
),
array(
array('Zweite Frage?',1), // Frage, Nr. richtige Antwort (arraykey+1)
array( // Antworten
'richtige Antwort',
'falsche Antwort',
'falsche Antwort',
'falsche Antwort'
)
)
);
if (! $_POST['submit']) {
$i=0;
foreach ($fragen as $frage) {
echo '<p><b>'.$frage[0][0].'</b></p><p>'."\n";
$j=1;
foreach ($frage[1] as $antwort) {
echo '<input type="radio" name="a'.$i.'" value="'.$j.'" /> '.$antwort.' <br />'."\n";
$j++;
}
echo '</p>'."\n";
$i++;
}
echo '<p><input type="submit" name="submit" value=" Auswertung anzeigen " /></p>';
} else {
$i=0;
$korrekt=0;
foreach ($fragen as $frage) {
if ($_POST['a'.$i] == $frage[0][1]) {
$korrekt++;
}
$i++;
}
echo '<p>Du hast '.$korrekt.' von '.count($fragen).' Fragen richtig beantwortet.</p>';
}
?>
</form></body></html> |
EDIT: URL geändert
Last edited by slick on Tue May 09, 2006 7:48 am; edited 5 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dakjo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/18635768514600eb83f10d8.jpg)
Joined: 31 Jan 2004 Posts: 1544
|
Posted: Wed Apr 19, 2006 1:31 pm Post subject: |
|
|
Juchuuuuuuuuuuu 'Du hast 15 von 15 Fragen richtig beantwortet' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Finswimmer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1672586922424daf205ec26.jpg)
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Wed Apr 19, 2006 1:32 pm Post subject: |
|
|
Du hast 14 von 15 Fragen richtig beantwortet
Nah dran, und was war jetzt falsch?
Tobi _________________ Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slick Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/155298905545589d9986ab5.gif)
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Wed Apr 19, 2006 1:40 pm Post subject: |
|
|
dakjo wrote: | Juchuuuuuuuuuuu 'Du hast 15 von 15 Fragen richtig beantwortet' |
Finswimmer wrote: | Du hast 14 von 15 Fragen richtig beantwortet |
Da sieht man den Unterschied von Veteran zu l33t ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Roller Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/13018670142f3bf6abe566.jpg)
Joined: 22 Jan 2005 Posts: 114 Location: Esslingen/Germany
|
Posted: Wed Apr 19, 2006 1:41 pm Post subject: |
|
|
slick wrote: | dakjo wrote: | Juchuuuuuuuuuuu 'Du hast 15 von 15 Fragen richtig beantwortet' |
Finswimmer wrote: | Du hast 14 von 15 Fragen richtig beantwortet |
Da sieht man den Unterschied von Veteran zu l33t ![Cool 8)](images/smiles/icon_cool.gif) |
Dann stimmt bei mir aber was nicht:
"Du hast 15 von 15 Fragen richtig beantwortet" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
c_m Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/169562908546f9e96179d11.jpg)
Joined: 29 Jun 2005 Posts: 358
|
Posted: Wed Apr 19, 2006 1:45 pm Post subject: |
|
|
13
Naja, mit Bugreports mach ich nicht viel und Gentoos kannt ich nicht ^^ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Finswimmer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1672586922424daf205ec26.jpg)
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Wed Apr 19, 2006 1:56 pm Post subject: |
|
|
Ok. Fehler gefunden.
Dumme Tiere Sind für mich alles gaaaaaanz süße putzige Pinguine
Tobi _________________ Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smg Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1227089703419756a3aa42e.png)
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Wed Apr 19, 2006 2:23 pm Post subject: |
|
|
Quote: | Du hast 15 von 15 Fragen richtig beantwortet |
Juhu! _________________ GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code: | perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);' |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ian! Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1114116401443d66f15cb90.jpg)
Joined: 25 Feb 2003 Posts: 3829 Location: Essen, Germany
|
Posted: Wed Apr 19, 2006 2:58 pm Post subject: |
|
|
Coole Idee!
Quote: | Du hast 15 von 15 Fragen richtig beantwortet |
Hätte wer was anderes erwartet? ![Wink :wink:](images/smiles/icon_wink.gif) _________________ "To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
treor Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 03 May 2005 Posts: 174 Location: germany
|
Posted: Wed Apr 19, 2006 3:05 pm Post subject: |
|
|
14/15 weil ich direkt bei der 1 pinguin ancklicken wollte aber irgendwie auf de kuh gelandet bin ^^ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slick Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/155298905545589d9986ab5.gif)
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Wed Apr 19, 2006 3:08 pm Post subject: |
|
|
Wer den Test eigenständig erweitern will (oder einfach nur schummeln weil er nicht über 10 kommt ) hier die Fragen passend für das Script oben.
EDIT: URL geändert
Last edited by slick on Wed Apr 19, 2006 9:12 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
l3u Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/535570295dff893c1fda6.png)
Joined: 26 Jan 2005 Posts: 2616 Location: Konradsreuth (Germany)
|
Posted: Wed Apr 19, 2006 3:39 pm Post subject: |
|
|
Laaangweilig ;-) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
b3cks Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/2950913324bb3561d0d0e4.jpg)
Joined: 23 Mar 2004 Posts: 1481 Location: Bremen (GER)
|
Posted: Wed Apr 19, 2006 4:21 pm Post subject: |
|
|
Libby wrote: | Laaangweilig ![Wink ;-)](images/smiles/icon_wink.gif) |
++
Quote: | Du hast 15 von 15 Fragen richtig beantwortet |
Da fehlt ein Punkt! ![Wink ;)](images/smiles/icon_wink.gif) _________________ I am /root and if you see me laughing you better have a backup. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Uncle Enzo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_nibbler.gif)
Joined: 15 Feb 2006 Posts: 28 Location: Bern / Switzerland
|
Posted: Wed Apr 19, 2006 4:38 pm Post subject: |
|
|
Quote: | Du hast 15 von 15 Fragen richtig beantwortet |
hui kewl ![Razz :P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ctrl+Alt+Del Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/25903528046cedbb33a291.gif)
Joined: 04 Jul 2004 Posts: 326 Location: .de
|
Posted: Wed Apr 19, 2006 4:44 pm Post subject: |
|
|
Du hast 15 von 15 Fragen richtig beantwortet
der war zu einfach ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Storm.Xapek.de Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 09 Feb 2006 Posts: 97
|
Posted: Wed Apr 19, 2006 7:01 pm Post subject: |
|
|
14 von 15, hab die Forum-Frage nicht richtig gelesen.
Aber eigentlich garnciht so schlecht, kann man den test noch erweitern?
Dann könnten wir so ne Art Einbürgerungstest draus machen ![Smile :-)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tost Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/174494332243ce86b649820.jpg)
Joined: 10 Dec 2005 Posts: 506
|
Posted: Wed Apr 19, 2006 7:09 pm Post subject: |
|
|
Hehe bevor man sich registrieren kann mal so 20 Fragen davon stellen
14 von 15
tost |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slick Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/155298905545589d9986ab5.gif)
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Wed Apr 19, 2006 7:55 pm Post subject: |
|
|
Storm.Xapek.de wrote: | Aber eigentlich garnciht so schlecht, kann man den test noch erweitern? |
slick wrote: | Wer den Test eigenständig erweitern will (oder einfach nur schummeln weil er nicht über 10 kommt ) hier die Fragen passend für das Script oben. |
Kann jeder kopieren und frei umbauen/erweitern... ich freu mich darauf... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hoschi Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/20909266864655fb90cef80.png)
Joined: 19 Jul 2003 Posts: 2517 Location: Ulm, Germany, Europe
|
Posted: Wed Apr 19, 2006 10:22 pm Post subject: |
|
|
15 von 15
Danke fuer den Code, und den Test
Kriege ich jetzt LPIC 1 ? _________________ Just you and me strogg! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mrsteven Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Funny_Figure/kotz.gif)
Joined: 04 Jul 2003 Posts: 1939
|
Posted: Wed Apr 19, 2006 10:44 pm Post subject: |
|
|
15/15. Was habe ich gewonnen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ConiKost Developer
![Developer Developer](/images/ranks/rank-dev.gif)
Joined: 11 Jan 2005 Posts: 1371
|
Posted: Wed Apr 19, 2006 10:47 pm Post subject: |
|
|
*freu*
Quote: | Du hast 15 von 15 Fragen richtig beantwortet |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slick Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/155298905545589d9986ab5.gif)
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Thu Apr 20, 2006 7:08 am Post subject: |
|
|
Aufgrund des netten Feedbacks hier der Test Nr. 2, diesmal etwas schwieriger - na wer schafft es ohne zu schummeln auf 15 Punkte? Die Fragen als Array gibts auch wieder extra. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zworK Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 07 May 2004 Posts: 308
|
Posted: Thu Apr 20, 2006 9:34 am Post subject: |
|
|
15/15 beim ersten
13/15 beim zweiten. Hab mich mit dem $PORTAGE_TMPDIR verhauen. Die drittletzte konnte ich nicht wissen, da nie gemacht.
Aber schöne Fragen ![Wink :wink:](images/smiles/icon_wink.gif)
Last edited by zworK on Thu Apr 20, 2006 9:53 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu Apr 20, 2006 9:48 am Post subject: |
|
|
"Du hast 15 von 15 Fragen richtig beantwortet" Yahooooooooo... ![Smile :)](images/smiles/icon_smile.gif) _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slick Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/155298905545589d9986ab5.gif)
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Thu Apr 20, 2006 10:10 am Post subject: |
|
|
Und weil so schnell der Arbeitstag vorbeigeht, hier noch ein ganz anderer Test. ![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|