Stop Going To Funtion When Click Delete Files Button |
In my foreach loop I have a item called delete_files.
When I click delete button in my foreach loop it removes the files from storage location and database. However every time I click on the button keeps on going to that controller function I have used exit() and tried die() at end of the function Example http://forum.project.com/newthread/delete_files/1/77 Question When I click on it I still want to be able to delete the files but not have to get sent to that location, Is there any way just using php correctly that I have missed? I tried using exit() and die() not worked. PHP Code: public function delete_files($forum_id, $attachment_id) { PHP Code: public function index() { PHP Code: <?php if ($thread_attachments) {?>
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
Stop Going To Funtion When Click Delete Files Button - by wolfgang1983 - 02-17-2017, 01:33 AM
RE: Stop Going To Funtion When Click Delete Files Button - by Wouter60 - 02-17-2017, 02:45 PM
|