<html>
<head>
<title>Pet Form Response</title>
</head>
<body>
<h1>PET FORM RESPONSE</h1>
<br>
<hr>
<br>
<?php
print("<br>The name of your pet is $petname <br>\n");
print("<br>The owner of your pet is $petowner <br>\n");
?>
<h2>this is the next part</h2>
<br>
<?php
if ($pettype == 1)
print("<br><br>You own a dog! <br> <br>\n\n");
elseif ($pettype == 2)
print("<br><br>You own a cat! <br> <br>\n\n");
elseif ($pettype == "3")
print("<br><br>You own a hamster!<br> <br>\n\n");
elseif ($pettype == "4")
print("<br><br>You own a fish! <br> <br>\n\n");
elseif ($pettype == "5")
print("<br><br>You own a bunny!<br> <br>\n\n");
if ($gender == "male")
print("<br><br>Your pet is male <br> <br>\n\n");
else
print("<br><br>Your pet is female <br> <br>\n\n");
if (count($petstuff)>0)
{
print("<br> $petstuff[0] <br><hr><br>");
foreach($petstuff as $value)
{
print("<br><br>Your pet is $value <br> <br>\n\n");
}
}
print("<br><hr> for sale \$ 5.00 <br> <hr>");
?>
</body>
</html>