PHP_SELF in Buttonproblem in PHP5
- From: "mk" <mk.privat@xxxxxxxxxx>
- Date: 21 May 2006 16:25:03 -0700
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
.
- Follow-Ups:
- Re: PHP_SELF in Buttonproblem in PHP5
- From: Someuser
- Re: PHP_SELF in Buttonproblem in PHP5
- From: David Haynes
- Re: PHP_SELF in Buttonproblem in PHP5
- Prev by Date: Re: Working site transfered to new web host & now does not work...
- Next by Date: Re: PHP_SELF in Buttonproblem in PHP5
- Previous by thread: Working site transfered to new web host & now does not work...
- Next by thread: Re: PHP_SELF in Buttonproblem in PHP5
- Index(es):