I'm doing a deleting function for a webpage which basically read input from user and compare it to the data from database and the delete. The code is already running perfectly. Just lack of confirm deletion popup. I've tried multiple method to put it and some of the error is regarding the 'GET' and 'POST' method. I dont want to change anything on the route because the function is already working properly. Below is some part of code.
<button ><a href="delete">Back</a></button>  <button><a href="">Delete</a></button>
And route:
Route::get('/servicedetails','ServiceDetailsController@showservicedetails');
Route::get('/delete','ManageController@delete');
Route::post('/delete2','ManageController@delete2');
Route::get('deleted/{domain_name}/{ext}','ManageController@deleteConfirm');
I want to put the popup on the onClick button and then run the function deleteConfirm().
Hope anybody can help.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire