Possible Duplicate:
All localhost pages via WAMP blocked??
I'm running WAMP on localhost and am trying to use a modal window to submit something to my database.
When I had the form to submit outside of the modal window to appear on the page itself, no problems.
When I try to submit from the modal window, I get the following error (403 Forbidden):
Forbidden
You don't have permission to access /< on this server.
Any ideas? I'm not sure what to try next.
EDIT: This is NOT a duplicate. My other question arose in the process of trying to fix this.
EDIT2: I used GET instead of POST to see if I can narrow down this problem. Here's what comes into my address bar when I get this error:
http://localhost/%3C?php%20echo%20$_SERVER['PHP_SELF'];%20?%3E
And here's the code in that php file (that's associated with the modal window)
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<label> <br /><br /><br /><br /><br />Who?: <br />
<textarea name="nametext" rows="1" cols="10"></textarea></label>
<select name="ident" id="ident">
<option value="yankees">Yankees</option>
<option value="phillies">Phillies</option>
<option value="announcer">Announcer</option>
</select>
<label> <br />What did they say?: <br />
<textarea name="quotetext" rows="10" cols="26"></textarea></label>
<input type="submit" value="Submit!" />
<br />
</form>
<a href="#" class="lbAction" rel="deactivate">Close Lightbox.</a>