Undefined variable: PHP_SELF

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Czar
Forum Commoner
Posts: 58
Joined: Sun Dec 29, 2002 11:17 am

Undefined variable: PHP_SELF

Post 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
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Try <? echo $PHP_SELF; ?>. Maybe that would work.
Image Image
Czar
Forum Commoner
Posts: 58
Joined: Sun Dec 29, 2002 11:17 am

Post by Czar »

nope!
Czar
Forum Commoner
Posts: 58
Joined: Sun Dec 29, 2002 11:17 am

Post by Czar »

got i t right.

echo $_SERVER['PHP_SELF']
Post Reply