RE: [PHP] Undefined variable: PHP_SELF
| From: | David Freeman | Date: | Thu, 15 Aug 2002 23:25:56 +0000 |
| Subject: | RE: [PHP] Undefined variable: PHP_SELF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112878@lists.php.net to get a copy of this message | ||
> I keep getting "Undefined variable: PHP_SELF" when using the
> following:
>
> <form method=post action='$PHP_SELF'>
>
> Global variables are off... What am I doing wrong?
In current versions of PHP, $PHP_SELF is available if globals are on.
You'll need $_SERVER['PHP_SELF'] instead if you're keeping globals off.
CYA, Dave