calling PHP self with a text link

From: Date: Fri, 02 Sep 2005 07:00:11 +0000
Subject: calling PHP self with a text link
Groups: php.general 
Request: Send a blank email to php-general+get-221739@lists.php.net to get a copy of this message
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 (#221739) next »