Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2009
    Location
    Calgary, Alberta
    Posts
    239
    Thanks
    47
    Thanked 3 Times in 3 Posts

    Delete Confirmation

    Hello all,

    could someone fill me in on getting a confirmation of deleting a record from mysql database.

    basically.. are you sure you want to delete this record.? Yes/No.

    Thanks, Slayer.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,464
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Do you currently have some sort of form that says, "delete this"?
    Or do you have a link that says "delete this"?

    We might have to see a lot of what you already have to come up with the solution.
    There are a few ways it can be done. So show us some scripting and HTML forms?

  • #3
    Regular Coder
    Join Date
    Sep 2009
    Location
    Calgary, Alberta
    Posts
    239
    Thanks
    47
    Thanked 3 Times in 3 Posts
    I have a link that deletes the file.. and it deletes fine.. just looking on how you can add a confirmation of deleting the file.

    Thanks,

  • #4
    Regular Coder
    Join Date
    Nov 2007
    Location
    Leeds, UK
    Posts
    514
    Thanks
    24
    Thanked 19 Times in 19 Posts
    Quote Originally Posted by SlayerACC View Post
    I have a link that deletes the file.. and it deletes fine.. just looking on how you can add a confirmation of deleting the file.

    Thanks,
    use Javascript
    PHP Code:
    <script type="text/javascript">
    function 
    cofirm(){
      var 
    where_toconfirm("Do you really want to DELETE this item?");
      if(
    where_to == true){
        
    document.location "your delete page(php output for the your current link href)";
      }
    }
    </script> 
    Working towards a Internet where we don't have website just browser applications Kill the Hyper-link and say hello to 3D Games in the browser :)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •