Hi,
I have a link in my web page and when user click on this link, i would like
to execute a PHP function with a parameter.
how can i do it ?
ex :
?php
function lang($language)
{
$lg = $language;
}
?
...
A href=?php lang(eng);?test/A
but this does not work :-(
thanks for help.
Alain
Alain Roger wrote:
I have a link in my web page and when user click on this link, i would
like to execute a PHP function with a parameter.
You'll need to initiate a new request. Browsers don't execute PHP code.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
At 11:46 AM 2/12/2006, Alain Roger wrote:
I have a link in my web page and when user click on this link, i would like
to execute a PHP function with a parameter.
how can i do it ?
If you're using PHP in the usual way as a server-side script, it
doesn't run in the same time-frame as user
3 matches
Mail list logo