Re: calling PHP self with a text link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<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@xxxxxxxxxxxxx> wrote in message 
news:9E.C1.15098.6F7F7134@xxxxxxxxxxxxxxx
> 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. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux