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
Czar
Forum Commoner
Posts: 58 Joined: Sun Dec 29, 2002 11:17 am
Post
by Czar » Sun Dec 29, 2002 11:17 am
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
phice
Moderator
Posts: 1416 Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:
Post
by phice » Sun Dec 29, 2002 11:27 am
Try <? echo $PHP_SELF; ?>. Maybe that would work.
Czar
Forum Commoner
Posts: 58 Joined: Sun Dec 29, 2002 11:17 am
Post
by Czar » Sun Dec 29, 2002 11:41 am
nope!
Czar
Forum Commoner
Posts: 58 Joined: Sun Dec 29, 2002 11:17 am
Post
by Czar » Sun Dec 29, 2002 1:13 pm
got i t right.
echo $_SERVER['PHP_SELF']