$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
User avatar
harsha
Forum Contributor
Posts: 103
Joined: Thu Jul 11, 2002 1:35 am
Location: Bengaluru (Bangalore) > Karnataka > India

$PHP_SELF

Post by harsha »

hi

i have a problem if i use action="<?=$PHP_SELF ?>" the path is not printing

can you plz tell me the problem with it

even i tried

action = <? echo $PHP_SELF; ?>
action = <? echo "$PHP_SELF"; ?>
action = <? echo '$PHP_SELF'; ?>

is there any problem with my php installation or with apache??? :roll:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Try

Code: Select all

$_SERVER&#1111;'PHP_SELF']
Mac
Post Reply