Location: PHPKode > scripts > MyBox > mybox/index.php
<?php 
require_once("mybox.php");
if(isset($_POST['submit']))
	{
		$newbox= new mybox();
		$newbox->calc_mybox($_POST[heigth],$_POST[length],$_POST[width]);
	}

?>
<!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=utf-8" />
<title>Class My Box</title>
</head>
<body style="color:#000000; font-family:Arial; font-size:12px;">

<form action="index.php" method="post" target="_self">
          <label>Heigth : <input name="heigth" type="text" id="heigth" size="10" maxlength="10" /> (in centimeters)<br /><br /></label>
          <label>Length : <input name="length" type="text" id="length" size="10" maxlength="10" /> (in centimeters)<br /><br /></label>
          <label>Width : <input name="width" type="text" id="width" size="10" maxlength="10" /> (in centimeters)<br /><br /></label>
          <input name="submit" type="submit" id="submit" />
          <input name="input" type="reset" value="Reset" />
</form></div>
</div>
</body>
</html>
Return current item: MyBox