Re: [PHP] How do I use a confirm box to confirm before deletion from a database

2002-01-28 Thread Girish Nath
Hi If you have a delete "link" then try this : function confirmThis(url) { if (confirm("Are you sure you want to delete ?")) { window.location = url; } } Then you can generate the delete link dynamically with PHP eg : Delete! This should pop up a OK/Cancel dialog bo

Re: [PHP] How do I use a confirm box to confirm before deletion from a database

2002-01-28 Thread Jeff Van Campen
>When a user clicks upon a delete link that deletes a record from a >database, I would like to be able to give them the option to OK or Cancel >this action. > >I have tried coding the browsers built in confirm box (I can bring up >this) but am unable to combine it with php or a combination of