Jump to content

Noob Q: Simple JS Alert POST callback to php script


Recommended Posts

 <td> <button onclick="alertdialog()"><span class="glyphicon glyphicon-trash"> </span></button></td>
function alertdialog(){
    window.confirm("Are you sure you want to delete this post?");


This is my code. I need to have a callback to a PHP script when a user decides to delete a post. I think html POST is the most unobtrustive way to do this. What's the easiest / most robust way to send data to a script when the user clicks OK?





Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.