Re: calling PHP self with a text link

From: Date: Fri, 02 Sep 2005 07:44:31 +0000
Subject: Re: calling PHP self with a text link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221741@lists.php.net to get a copy of this message
<a href="<? echo $PHP_SELF,'?','&action=something' ?>">do somehthing</a> this seems to work but can someone explain the syntax to me what does a '?' and a ',' do in PHP? I thought you joined strings with a full stop '.' (a period if you are from the US). R. ""Ross"" <ross@aztechost.com> wrote in message news:9E.C1.15098.6F7F7134@pb1.pair.com... > Hi, > > I want call the current page and set a variable (or call a function) > > < a href="index.php?variable=bananas" -this works but means I have to > change it for every page name > > I have tried > > <a href="<? $PHP_SELF(); ?>">this is the link</a> > > Only works within a <form> tag. > > Any ideas - no javascript solutions that is what I am trying to avoid. > > > R.

« previous php.general (#221741) next »