Can I call php function from javacsript button?

Is this nonsense or is it possible?

Re: Can I call php function from javacsript button?

Keep in mind that since PHP is server based and JS is Client based, they do not communicate directly and are executed at different times.

Google: ‘call php javascript’

There are options provided.

AJAX may be worth a look.
http://www.tizag.com/ajaxTutorial/

Regards,
Scott.