Okay that makes it a lot easier for me to understand.
test.php
PHP:
<html>
<body>
<center>
<h1>Quiz</h1>
</center>
<h3>
Which one is the correct way to start an HTML Document?</h3>
<br>
<form action="test.php" method="POST">
<input type="radio" name="quiz" value="Correct"> <HTML>
<br>
<input type="radio" name="quiz" value="Wrong"> <XHTML>
<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.<br> Click<u><a href="tutorial.php">here.</a></u>';
}
else
{
echo 'Wrong. <a href="javascript:history.back()">Try again</a>';
}
}
?>
</body>
</html>
Tutorial.php
PHP:
<html>
<body>
<center>
<h1>Quiz</h1>
</center>
<h3>
Which one is the correct way to start an HTML Document?</h3>
<br>
<form action="test.php" method="POST">
<input type="radio" name="quiz" value="Correct"> <body bgcolor=green>
<br>
<input type="radio" name="quiz" value="Wrong"> <bg color=green>
<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.<br> Click<u><a href="tutorial.php">here.</a></u>';
}
else
{
echo 'Wrong. <a href="javascript:history.back()">Try again</a>';
}
}
?>
</body>
</html>
-Coolprogram
Ohhhh my god ifigured out my mistake. Never mind i dont need help on that any more my bad i forgot to change something :lol: ooopppsss