Hello, I'm using easyPHP to locally test some scripts I'm building, but I came across a problem that I can't seem to resolve. Within one of my PHP scripts, there's a segment where I end the PHP (
?> ) and output a form in HTML, then resume the PHP section (
<?php ). The problem is, in this HTML segment, I have the following in the action value for the form tag:
<form method='post' action="<?=$_SERVER['PHP_SELF']?>"> <!-- etc... -->
When the form is submitted and the page reloaded with the POST values, I just get the following error:
Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster. Error 403
The URL bar has the address http://127.0.0.1/PHP Testing/<?=$_SERVER[PHP_SELF]?>.
I'm using Apache 2.2.13 with PHP 5.3.0 which all came with easyPHP 5.3.0. Can I assume that there are some values or permissions that I didn't set (possibly in php.ini)? And if so, how can I fix that? Any help would be appreciated, thanks!