Where is the problem?
Posted by: nextu (---.sympatico.ca)
Date: August 05, 2006 06:20PM

I just installed WAMP5 1.6.4a.

I tried the next code in the folder wamp/www:

<html>

<head>
<title></title>
</head>

<body>
<?php
// If we had a GET element called 'city', then echo it:
if (isset($_GET['city'])) {
echo "<p>You said you come from: {$_GET['city']}</p>\n";
}
?>
<form action="<?= $_SERVER['PHP_SELF'] ?>" method="get" name="f1">
<p>What city/town do you hail from? <input name="city" type="text" /></p>
<p><input type="submit" /></p>
</form>


</body>

</html>


I received following error:


Forbidden
You don't have permission to access /< on this server.


--------------------------------------------------------------------------------

Apache/2.0.58 (Win32) PHP/5.1.4 Server at localhost Port 80

What is the mistake and what is the solution?


Thanks in advance


Options: ReplyQuote
Re: Where is the problem?
Posted by: CyberSpatium (67.170.181.---)
Date: August 06, 2006 01:14AM

first, check your apcahe error log and see if you are getting any errors. apache stores the newest errors the bottom of the file, so scoll down to the bottom to see the newest errors. what errors are you getting?

Options: ReplyQuote


Sorry, only registered users may post in this forum.