Post: Help making a quiz!!!
08-31-2011, 12:24 AM #1
Default Avatar
Cade
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); alright guys I already got the basics here: [url]www.thecade.info/blah.php[/url]

But I need it to have a button that says "next question" after you answer correctly.

The quiz will only be 5 questions.

<form name = "quizQ1">

<b>Question 1: Should you wear flip flops or close toed shoes while working in the lab?</b><br> <br>

<input type = "radio" name = "rad1" onclick = "getAnswer('a'Winky Winky"> Close Toed Shoes <br>
<input type = "radio" name = "rad1" onclick = "getAnswer('b'Winky Winky"> Flip Flops <br><br><br>
</form>

<script type = "text/javascript">

function getAnswer(input) {
if (input == "a") {alert ("Well done! You should always wear closed toed shoes when working in the lab!")}
else {alert ("No that's incorrect, I like men")}
}

</script>
(adsbygoogle = window.adsbygoogle || []).push({});
08-31-2011, 12:26 AM #2
wite_guy
I-<3-2-1/2-6
Science safety test FTW xD i took mine yesterday.
08-31-2011, 12:27 AM #3
Default Avatar
Cade
Guest
Originally posted by guy View Post
Science safety test FTW xD i took mine yesterday.


This is a project, I'm making a website about lab safety in biology.
08-31-2011, 12:31 AM #4
wite_guy
I-<3-2-1/2-6
Yeah im in biology. and just make a re-direct somehow. Like right answer goes on and false goes back. and for every wrong answer they go ALL the way back to the beginning. I dont do the whole coding thing
08-31-2011, 12:42 AM #5
Default Avatar
Cade
Guest
Originally posted by guy View Post
Yeah im in biology. and just make a re-direct somehow. Like right answer goes on and false goes back. and for every wrong answer they go ALL the way back to the beginning. I dont do the whole coding thing


Your a freshman?
08-31-2011, 01:15 AM #6
wite_guy
I-<3-2-1/2-6
Sophomore. But i live in Texas.

---------- Post added at 08:15 PM ---------- Previous post was at 08:11 PM ----------

Originally posted by Team
Your a freshman?

Forgot to quote.
08-31-2011, 02:13 AM #7
Pichu
RIP PICHU.
Why don't you set it up that if it is a certain choice that it just rewrites the original line with new text and adds hidden values.

Say A = 0 B = 1

If the choice is A then the user gets 0 points
If the choice is B then the user gets 1 point

You can have that rewritten as you go by possibly setting values.

Just an idea of some sort, I don't deal with this work... :/

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo