gevo12321 Posted June 25, 2007 Share Posted June 25, 2007 hi i made a delete button for some things in a database and i was wondering if there was any way that i could make it ask me if im sure i want to delete something from the database before deleting you know like and alert box or something thank you Link to comment https://forums.phpfreaks.com/topic/57043-solved-are-you-sure-you-want-to-delete/ Share on other sites More sharing options...
mmarif4u Posted June 25, 2007 Share Posted June 25, 2007 Use javascript alert popup. Link to comment https://forums.phpfreaks.com/topic/57043-solved-are-you-sure-you-want-to-delete/#findComment-281827 Share on other sites More sharing options...
suma237 Posted June 25, 2007 Share Posted June 25, 2007 hey, try this code <from name="frmdel"> <table> <tr><td><input type="submit" value="delete" name="del" onclick="return deldel()"></td></tr> </table> </form> <script language="javascript"> function deldel() { var agree=confirm("Do you want to delete"); if(agree) return true; else return false; } </script> Link to comment https://forums.phpfreaks.com/topic/57043-solved-are-you-sure-you-want-to-delete/#findComment-281830 Share on other sites More sharing options...
gevo12321 Posted June 25, 2007 Author Share Posted June 25, 2007 thank you very much rock on Link to comment https://forums.phpfreaks.com/topic/57043-solved-are-you-sure-you-want-to-delete/#findComment-281831 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.