hi!!
I am working on a script that should create a link , where clicked, should redirect a user to the same page and set $mode variable to add so that other functions/scripts relying on $mode can perform other internal work, which is displaying a form to receive user inputs which are to be added to mysql database.
I have tried following:
<a href="<?php=$ME?>?mode=add"> Add New</a>
Here,
I have defined $ME=$_SERVER['SCRIPT_NAME']; previously
But when clicking on the link the following error shows up in the browser:
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
I have tried printing the $ME variable.....it works just as fine....
I even changed $ME to $_SERVER['PHP_SELF']....but the problem is same.
I cannot figure out what the problem is....help guys............