PHP function called by onclick
| From: | Alain Roger | Date: | Sun, 12 Feb 2006 19:46:01 +0000 |
| Subject: | PHP function called by onclick | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230273@lists.php.net to get a copy of this message | ||
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