- Impact
- 7
here is the code it is still a quiz this is whatever.php
I hope you like this code it is great for quizes, I need to learn a little MySQL to show percents and that.
-CP
PHP:
here is the code it is still a quiz this is whatever.php
<html>
<body>
<center>
<h1>Quiz</h1>
</center>
<h3>Which is the correct spelling?</h3>
<br>
<form action="whatever.php" method="POST">
<input type="radio" name="cool" value="Wrong"> heel
<br>
<input type="radio" name="quiz" value="Correct"> heal
<br>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset All">
</form>
<?php
if($_POST['submit'])
{
$quiz = $_POST['quiz'];
if($quiz == "Correct")
{
echo 'You are Correct click <a href="next.php">here</a> to move on.';
}
else
{
echo '<h2><font color="red">Wrong.</font> try again!!';
}
}
?>
</body>
</html>
I hope you like this code it is great for quizes, I need to learn a little MySQL to show percents and that.
-CP
Last edited:






