PHP 7 Script to Find Area of Rectangle Using Width & Height Using HTML5 Form in Browser Full Project For Beginners

  • Post author:
  • Post category:PHP
  • Post comments:0 Comments







<form method = "post">   
Width: <input type="number" name="width">   
Length: <input type="number" name="length"> <br>   
<input type = "submit" name = "submit" value="Calculate">   
$width = $_POST['width'];   
$length = $_POST['length'];   
$area = $width*$length;   
echo "The area of a rectangle with $width x $length is $area";   

Leave a Reply