I completed the first three tutorials on Zend's website and I had tested out all the scripts just fine. I got to one tutorial that used $SERVER['PHP_SELF'] and I started getting the 403 Forbidden error. Environment is PHP/Apache/Windows. Script is as follows: <html>
<head></head>
<body>
<form method="post" action="<?php echo $SERVER['PHP_SELF']; ?>">
Enter number of rows <input name="rows" type="text" size="4"> and columns <input name="columns" type="text" size="4"> <input type="submit" name="submit" value="Draw Table">
</form>
<?php
if (isset($POST['submit'])) {
echo "<table width = 90% border = '1' cellspacing = '5' cellpadding = '0'>";
// set variables from form input
$rows = $POST['rows'];
$columns = $_POST['columns'];
// loop to create rows
for ($r = 1; $r <= $rows; $r++) {
echo "<tr>";
// loop to create columns
for ($c = 1; $c <= $columns;$c++) {
echo "<td> </td>\n";
} echo "</tr>\n";
}
echo "</table>\n";
}
?>
</body>
</html>
ERROR IS: Forbidden
You don't have permission to access /test/< on this server.