<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Dog | Human Age</title>
</head>
<body>
<?php
require("dogage.php");
if(isset($_POST['age'])){
$obj=new dogHumanAge;
$age=$obj->dogAge($_POST['age']);
echo 'Your Dog is <b><font color="#FF0000">'.$age['humanizedAge'].'</font></b> years old in human age.<br />';
echo $age['message'];
}else{
?>
<form method="POST">
Please input your dog's age:<br />
<input type="number" name="age" />
<input type="submit" value="OK"/>
</form>
<?php } ?>
</body>
</html>
|