Delete Button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DreamOn
    New Member
    • Jun 2015
    • 6

    Delete Button

    Hi people, I have a table which displays users records and if i click the ID of a user it will be redirected to an update user page. What i want to do is to add a delete button so that the admin may update or delete the user and then be redirected back to the table. The redirect part i know but its the button that's bothering me. Someone knows how to do one? (The more simple the better)
  • computerfox
    Contributor
    • Mar 2010
    • 276

    #2
    Normally for a delete button I would embed with an iframe into a form with a submit button to delete. Saves on redirects and page count, but since you want a button to redirect to and update page, I would add a button with onmousedown set to the update page. Make sure you are passing the identification for the record.

    Hope that helps!

    Comment

    Working...