Execute PHP statement using JavaScript

Hi guys, I have a problem on how am I be able to execute a PHP statement through the use of JavaScript Confirm? If the user press on the YES button, I am going to execute a PHP statement. Can you help me please.

You can use AJAX, or a redirect. You cannot execute server side (php) code on the client side (js).

Perhaps a better description of your actual problem would yield better replies than mine.