Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roberto Aleman  >  MyBox  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Index File
Class: MyBox
Calculate volumetric weight of a package
Author: By
Last change: improvement show data
Date: 4 years ago
Size: 1,235 bytes
 

Contents

Class file image Download
<!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;">
<center>
<h1>MyBox</h1>
<h2>Calculate volumetric weight of a package</h2>
<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></center></div>
</div>
<?php 
require_once("mybox.php");
if(isset(
$_POST['submit']))
    {
        
$newbox= new mybox();
        
$newbox->calc_mybox($_POST[heigth],$_POST[length],$_POST[width]);
    }

?>
</body>
</html>