[PHP] PHP function called by onclick

2006-02-12 Thread Alain Roger
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

Re: [PHP] PHP function called by onclick

2006-02-12 Thread Chris Shiflett
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/ --

Re: [PHP] PHP function called by onclick

2006-02-12 Thread Paul Novitski
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