Page 1 of 1

Automatically call the current webpage into a link

Posted: Thu Sep 21, 2006 1:38 am
by DTP
Topicname... If I knew what to call it... I'll do the best I can.

I want to be able to automatically call the current page into a link, and then add
some standard text to it which will remain the same.

so something like <a href="{current page}_AB.php>Link name here</a>

Where

{current page} = http://www.domain.com/index.php?pagename for example

and

_AB.php would remain constant.

Theoritically it should be possible.

I have tried searching for it, but don't know what the function is called thus where to start searching. :? ;)

Many thanx ahead of time.

Posted: Thu Sep 21, 2006 1:43 am
by aaronhall

Code: Select all

<a href="<?=$_SERVER['PHP_SELF']?>_AB">Link text</a>
should do it