t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.39k stars 2.84k forks source link

Sweetalert Confirm Alert with PHP confirmation Event #882

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello, my questions is simple, its the fact that if it possible with Sweetalerlt that when i create an confirmation Alert that if the user press okay or something like this that an php event were call?Example an mysql update function started to run.Thank you for all answers and im sorry for my bad english.

t4t5 commented 5 years ago

SweetAlert is a client-side library. If you want it to call a PHP script, you'd have to do an AJAX call to some PHP endpoint.