Re: $PHP_SELF not working -please help

From: Date: Wed, 19 Dec 2001 22:12:39 +0000
Subject: Re: $PHP_SELF not working -please help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78248@lists.php.net to get a copy of this message
Now for some strange reasons it tries to access my web direcorty that does not contain any file, and i get the 404 page not found error.
check the source code of the html page. most likely you will see: <FORM ... ACTION="">. if not, it will still give you a hint about what's going wrong. are you constructing that form within a function? then you have to pull the $PHP_SELF variable into the local context. put 'global $PHP_SELF;' at the top of the form-outputting function. phil.

« previous php.general (#78248) next »