- Impact
- 7
Here are 2 codes that kinda work together and become 1. Yet they are 2 seperate things. LOL oh well.
-Coolprogram
awesome.php
whatever.php
These codes would make something like this www.programmingplus.info/awesome.php
-Coolprogram
awesome.php
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>
</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>
PHP:
<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>
whatever.php
PHP:
<html>
<h1>Wasup!!</h1>
<br>
<h3>Thanks for doing this
-Coolprogram
These codes would make something like this www.programmingplus.info/awesome.php
Last edited:








