Re: PHP_SELF in Buttonproblem in PHP5
- From: David Haynes <david.haynes2@xxxxxxxxxxxx>
- Date: Sun, 21 May 2006 21:50:12 -0400
mk wrote:
The following code was working on a Server with PHP 4.I think you have to bring 'next' back via the $_POST array.
<?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
Try:
if( isset($_POST['next']) ) {
echo "next\n";
} else {
echo "no next\n";
}
-david-
.
- Follow-Ups:
- References:
- PHP_SELF in Buttonproblem in PHP5
- From: mk
- PHP_SELF in Buttonproblem in PHP5
- Prev by Date: PHP_SELF in Buttonproblem in PHP5
- Next by Date: find all keys in 2D array
- Previous by thread: PHP_SELF in Buttonproblem in PHP5
- Next by thread: Re: PHP_SELF in Buttonproblem in PHP5
- Index(es):