rondog Posted May 7, 2008 Share Posted May 7, 2008 How could I do an alert box similar to the one in phpMyAdmin when you go to remove an item from the database? It just says are you sure u want to delete. Ok or cancel..ok does it cancel does nothing. Sounds simple I think Link to comment https://forums.phpfreaks.com/topic/104510-alert-box-before-remove/ Share on other sites More sharing options...
teng84 Posted May 7, 2008 Share Posted May 7, 2008 that is not an alert box that is confirmation box.. and that is not php that is JS Link to comment https://forums.phpfreaks.com/topic/104510-alert-box-before-remove/#findComment-535008 Share on other sites More sharing options...
rondog Posted May 7, 2008 Author Share Posted May 7, 2008 thanks for your insightful post. I figured it out. Link to comment https://forums.phpfreaks.com/topic/104510-alert-box-before-remove/#findComment-535009 Share on other sites More sharing options...
conker87 Posted May 7, 2008 Share Posted May 7, 2008 For my delete button, I use: <input value="delete" name="delete" onclick="return confirm('Are you sure you want to delete this?')" type="submit"> Link to comment https://forums.phpfreaks.com/topic/104510-alert-box-before-remove/#findComment-535073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.