does anyone know how I could call a php function using OnClick?
thanks dn
You can't - unless you want the whole page to load. i.e.
onclick="location.href='script.php?funcName"
And then in your PHP script:
if (isset($funcName)) { funcName(); }
Diego