I have two questions:

1) How can I call a PHP function from the "onClick" event of an <input type="button" onClick=" ... />

2) How do I invoque a JavaScript alert box from inside a PHP function?

I've tried a million things to no avail.

Thanks, Dan