Example #1
0
echo $rectangle->shapeHeight;
?>
>
        Width: <input type="text" name="rWidth"
                      value=<?php 
echo $rectangle->shapeWidth;
?>
>
        <br/>
        <br/>
        <br/>
        <input type="submit" name="submit" id="submit" value="Submit">
    </form>
    <?php 
$circle->shapeArea = $circle->CalculateSize($circle->shapeWidth, 0);
$triangle->shapeArea = $triangle->CalculateSize($triangle->shapeWidth, $triangle->shapeHeight);
$rectangle->shapeArea = $rectangle->CalculateSize($rectangle->shapeWidth, $rectangle->shapeHeight);
?>

    <h2>Results</h2>
    <p>Circle Area: <?php 
echo $circle->shapeArea;
?>
</p>
    <form action="Index.php" method="post">
        Resize by %: <input type="text" name="cAdjust" value="">
        <input type="hidden" name="cRadius" value=<?php 
echo $circle->shapeWidth;
?>
>
        <input type="submit" name="submit" id="submit" value="Resize">