Re: PHP_SELF in Buttonproblem in PHP5



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



.


Quantcast