Page 1 of 1

Undefined variable: PHP_SELF

Posted: Sun Dec 29, 2002 11:17 am
by Czar
Why i get following error msg every time i try to use forms (<form method=post action = <?php print("$PHP_SELF"); ?>) for example.

Undefined variable: PHP_SELF

Posted: Sun Dec 29, 2002 11:27 am
by phice
Try <? echo $PHP_SELF; ?>. Maybe that would work.

Posted: Sun Dec 29, 2002 11:41 am
by Czar
nope!

Posted: Sun Dec 29, 2002 1:13 pm
by Czar
got i t right.

echo $_SERVER['PHP_SELF']