$_POST['action']=='delete' i want to make a check so that if the $_POST['id'] item is used in another subcategory table. If so i have to stop execution and show the message. Where to incorporate this test in php side?
Well the `error` is the global error so you could use that - but it shows at the bottom of the modal. To show it at the top you would need to create a custom display controller.
Replies
Allan
But how to get the custom error message to client?
Allan