Jump to content

403 Forbidden com $_SERVER['PHP_SELF']


tmcp

Recommended Posts

boas, sou novo nisto do php mas tenoh andado a estudar a materia 😉. Agora comecei a testar uns scripts que me deram e isto esta me  dar erro qunando o ponho a correr atraves do Xampp 1.7.2. O erro é na parte

$_SERVER['PHP_SELF']

e nao percebo o que e que esta mal! Segue a parte do codigo onde da erro.

<p><a href="<?=$_SERVER['PHP_SELF'] . "?action=greenon" ?>">
Click here to turn the GREEN LED on.</a></p> 
<p><a href="<?=$_SERVER['PHP_SELF'] . "?action=greenoff" ?>">
Click here to turn the GREEN LED off.</a></p> 
<p><a href="<?=$_SERVER['PHP_SELF'] . "?action=redon" ?>">
Click here to turn the RED LED on.</a></p> 
<p><a href="<?=$_SERVER['PHP_SELF'] . "?action=redoff" ?>">
Click here to turn the RED LED off.</a></p> 
</body> 

agradecia uma ajudinha. obrigsdo desde ja

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.