<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>Untitled Document</title>
</head>
<body>
<?php
if ( isset($_POST['Submit']) )
{
$yas = $_POST['yas'];
$kilo = $_POST['kilo'];
$boy = $_POST['boy'];
$sonuc = $yas / $kilo + $boy;
?>
<h2>Sonuç <? echo $sonuc; ?></h2><br /><a href="<?php echo $_SERVER['PHP_SELF'];?>">Tekrar</a>
<?php
}
else
{
?>
<form method="post" action="">
<table width="200" border="1">
  <tr>
    <td>Yaş</td>
    <td><input type="text" name="yas" /></td>
  </tr>
  <tr>
    <td>Kilo</td>
    <td><input type="text" name="kilo" /></td>
  </tr>
  <tr>
    <td>Boy</td>
    <td><input type="text" name="boy" /></td>
  </tr>
  <tr>
    <td><input type="submit" value="hesapla" name="Submit" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
<?php
}
?>
</body>
</html>
geliştirilmeye açık..