Wednesday, March 28, 2007

Code for area

$iloveshapes = $_POST['shape'];
echo $iloveshapes;
if($iloveshapes=="circle")
{
//formula for area of square
echo (($_POST['length']*$_POST['length'])*3.1416);

}
else
{
//we need the radius of the circle
echo "Does this work?";
echo $_POST['length']* $_POST['length'];
//pi*r to the second power

5 comments:

Pantzer_legion said...

i finished

The Reaper said...

http://free.hostultra.com/~thegrymreaper/pregeometry.html

kalpesh said...

www.davidcfreer.com/~Kalpesh/new.html

Luis said...

i did it

http://free.hostultra.com/~luis28/CandS.html

Pantzer_legion said...

web page

http://pantzercom.orgfree.com/homegeo.html


Jorge Bartra