Forum Moderators: travelin cat
<html>
<body>
<form method="POST" action="nextpage.php">
<b>Question 1)</b>
<i><b>Why did the chicken cross the road</b></i><br><Br>
A: <input type="radio" name="group1" value="Q1A"> To get to the other side<br>
B: <input type="radio" name="group1" value="Q1B"> To be slaughtered by chicken haters<br>
C: <input type="radio" name="group1" value="Q1C"> To be coddled by tree huggers<br>
D: <input type="radio" name="group1" value="Q1D"> To make it to Antarctica<br>
<input type="submit" value ="Go!">
</form>
</body>
</html>
If it is, I suggest writing it in HTML instead of a Java Applet to make things a little more cross platform. Java is pretty universal, but not as universal as HTML.
So I would suggest the following:
1) Create the entire 'quiz page' in HTML
2) Create a script page (PHP, ASP, JSP etc..) to process the information
3) Write the information to a file or a database
4) Create an output "you've pased", "you've failed", "we will mail you your results" ... whatever you want to do.
This would all be done using a combination of a scripting language, and HTML. Not real complicated.
I hope this helps!
-- Zak
1) People can easily find the answers if they wish to look hard enough
2) IE for Mac (and older versions of Safari) are obsolete. IE for Mac is like running IE 4.x on a PC. Again bad news for a JS heavy site.
I'd try flash ... Oh but then you're looking at compatibility issues with those that don't have Flash Player installed. I fear the only way around what you are looking for, is to post your script in the JavaScript forum and let someone take a crack at it.
-- Another reason client-side is bad? If they have an older browser, one that doesn't support JS, or have JS disabled, they wil not be able to use your site. A server-side app would cure all these issues ... If you don't mind me asking, why does it have to be client-side?
-- Zak
Thanks again, I agree 100% with what you say, but in this case security is not an issue because the quiz is not a serious quiz and is designed to educate young kids and the correct answers will be given either as they go along or at the end. The reason its client side is because I don't have access to the clients server (the client will be uploading it to their server) and i want it to be fully tested and fool proof be for I give it to them. I've been told about a dreamweaver extra called coursebuilder which I'm going to give a go, thanks for your time fingers crossed this extra will be the solution.