No. JS is a client-side scripting language. PHP is a server-side scripting language. Best thing to do is have your JS call a .php script to execute on the server side.
Can Javascript call a PHP function?
eg.
<a onclick="myphpfunc()">Click me</a> ?
Thanks for any help you can offer.
No. JS is a client-side scripting language. PHP is a server-side scripting language. Best thing to do is have your JS call a .php script to execute on the server side.