how can I call a php function from a button (onClick=....)?
it works if I call an external php script, using javascript:location.href=.
.. but not when calling a function declared in the same file.
php function is ok and works if called within the php code.
the only thing I could do was to trigger a javascript function which does an echo of all php lines. pretty heavy...
does anyone has a smarter way?
Start Free Trial