PHP function called by onclick

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

 



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

[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