Test Form Code
test.php3
<html>
<body>
<center> Datakeeper Test </center><br>
Enter the required data:<br>
<form action = "testresult.php3" method = post>
Name: <input type = "text" name = "name"> <br>
Grade: <select name = "grade">
<option selected> Senior
<option> Junior
<option> Sophomore
<option> Freshman
</select> <br>
Phone Number: <input type = "text" name = "phone"> <br>
Medical Problems: <br>
<input type = "radio" name = "medical" value = "allergies"> I have
allergies. <br>
<input type = "radio" name = "medical" value = "glasses"> I wear glasses
or contacts.<br>
<input type = "radio" name = "medical" value = "healthy"> I am healthy in
every way.<br>
<input type = "submit" value = "Enter Your Information">
<input type = "reset" value = "Clear Information">
</body>
</html>
testresult.php3
<html>
<center> Form Results </center>
<?
print("Welcome, $name! <br>");
print("How is school treating you? It can be tough being a $grade.
<br>");
print("If I need to contact you, I'll call you at $phone. <br>");
if($medical == allergies)
print("I'm sorry you have allergies. <br>");
if($medical == glasses)
print("Too bad about your poor eyesight. <br>");
if($medical == healthy)
print("Glad to hear that you're healthy. <br>");
?>
</html>