<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> </html> <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'; } else { echo 'Wrong.'; } } ?> </body> </html>
<html> <body bgcolor=white> <body text=black> <b> <?php echo $_POST["quiz"]; ?>.<br /> Okay If you are correct click<u><a href="whatever.php">here.</a></u></h1></b> </body> </html>