Tuesday, March 14, 2006

Square area






php

$side = $_GET['side'];
$MPG = $side * $side;
echo $MPG;

?>


Clicking above will not work...blogger does not offer PHP support (that I know of) but you may use this PHP code as an example for your area coding question below.

To make the text box and submit button simply put this code in brackets <>:

INPUT TYPE = "TEXT" VALUE = "side" NAME = "side"
INPUT TYPE = "SUBMIT" VALUE = "CLICK HERE"

0 Comments:

Post a Comment

<< Home