Jump to content

Alert on delete


houssam_ballout

Recommended Posts

That should be easy.

 

In the tag.php page, check if $_GET['action']==delete.

 

If action is delete, then show a question Like 'Are you sure you want to delete?' or something and provide two buttons (or links) - Yes and No.

 

If 'Yes' is clicked, submit again to the page tag.php?ID=2&action=delete-confirmed

 

Then in the beginning of the page, check if $_GET['action']==delete-confirmed. If it is, then run the code to actually delete the record.

Link to comment
https://forums.phpfreaks.com/topic/234829-alert-on-delete/#findComment-1206776
Share on other sites

Archived

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.