Code: Select all
<?php
if(!$submit){ // if the submit button on the form is NOT pressed, print the form
?>
<div align=center><br><BR>
</head>
<form method="post" action="<? echo $PHP_SELF; ?>">
<?
printf("<input type=radio name=choice1 value=1>Click if you want me to be cool and sit down.<br> \n");
printf("<input type=radio name=choice1 value=2>Click if you want me to be cool and sit down.<br> \n");
printf("<input type=radio name=choice1 value=3>Click if you want me to be cool and sit down.<br> \n");
printf("<input type=radio name=choice1 value=4>Click if you want me to be cool and sit down.<br> \n");
?>
<input type="submit" name="submit" value="submit">
<br><br><a href="http://wwww.johnkpaul.com">jOHNkpAUL.com</a>
</form>
</div>
<?
}
if($submit){ // if the submit button IS pressed, then score the quizz
if($choice1==3){
echo "yoyo";
}
}
?>