PHP 5.2.5
IIS 5.1
Win XP pro
Testing a simple script on local IIS server, I have setup PHP exactly as php.net suggested http://us.php.net/manual/en/install.windows.iis.php, using ISAPI module. Running stand alone scripts like <?php phpinfo(); ?> works fine. But, having a little problem using a form to pass values to another script to generate the return values.
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<form action="domyhomework.php" method="get">
Width: <input type="text" name="w" /><br />
Height: <input type="text" name="h" /><br />
<input type="submit" />
</form>
</body>
</html>
<?php
$area = $w $h;
$perimeter = ($w + $h) 2;
?>
<html>
<body>
<p>Width: <?=$w?><br />
Height: <?=$h?></p>
<p>Area: <?=$area?><br />
Perimeter: <?=$perimeter?></p>
</body>
</head>
Results (no values returned, but when tested on a remote Linux hosting server, it works fine. What am I missing here. Thanks ahead of time)
Width:
Height:
Area:
Perimeter: