Re: PHP_SELF in Buttonproblem in PHP5
- From: "Someuser" <someuser@[127.0.0.1]>
- Date: Mon, 22 May 2006 19:46:37 GMT
see register globals in php manual. As of ver 4.something they were turned
off by default for security reasons (ex. passing vars by GET method etc.)
"mk" <mk.privat@xxxxxxxxxx> wrote in message
news:1148253903.724345.192880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The following code was working on a Server with PHP 4.
<?php
if(isset($next)){
echo 'next';
/*... some action here ...*/
} else {
echo 'next does not work';
}
?>
<form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>"
method="post">
<input name="next" type="submit" value="Next">
</form>
Now I have set my own Server with PHP5 and the ... isset($next) ...
does not work. Is my code wrong or has the Server to be reconfigured?
and how?
Thanks for a hint.
Markus
.
- References:
- PHP_SELF in Buttonproblem in PHP5
- From: mk
- PHP_SELF in Buttonproblem in PHP5
- Prev by Date: To send mail for php...
- Next by Date: Re: Is it A MUST to have internet to install mySql database?
- Previous by thread: Re: PHP_SELF in Buttonproblem in PHP5
- Next by thread: find all keys in 2D array
- Index(es):