Welcome Guest, Not a member yet? Register   Sign In
How to delete records from DB using $_POST method
#6

[eluser]Boris Strahija[/eluser]
Maybe you should build a confirmation page at http://domain.com/location/delete/100
This page would then contain a form with a hidden field of the record ID, and the confirmation button would submit the form.
You can check if the request came via ajax, and if it's ajax just skip this confimation and do it all with JS.


Messages In This Thread
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 08:27 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:25 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:29 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:42 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:44 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:47 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:48 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 09:51 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 10:00 AM
How to delete records from DB using $_POST method - by El Forum - 01-26-2011, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB