Results 1 to 3 of 3

Thread: Delete User link on list of users?

  1. #1
    Registered User

    Delete User link on list of users?

    In my continuing effort to learn PHP I decided to work on a registration system as a project for fun. I have a "View Users" page that would list the users with a link to "Delete" for admins.

    The book I was referencing for help redirects to a "deleteuser.php" type page where you then have to confirm if you want to do that or not.

    I would prefer to simply just a JS Confirm pop up box to ask if they are sure (or something along those lines) and if they click 'ok' it will execute.

    So my question is, what is the best way to set it up so that if I were to click 'ok' on the confirm box, the query would be executed?

  2. #2
    You need AJAX to do this. Learn about it here: . Basically this technique allows JS to call a PHP script without reloading the page.

  3. #3
    Registered User
    I don't mind if the page reloads, I just don't want to redirect to a different page altogether, is that possible?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012