Hello. I have and event.php page and del_single.php page. event page has a form:
<form action='del_single.php' method='get'>//<-i already have the method as get <input type='hidden' name='event_id' value='$id'> <input type='checkbox' name='check' class='check' value='$id'> <a href= '#' value='$id' name='e_n' onclick='getsum(".$id.")' >$name</a> <label>$formatDate</label> <input type='submit' name='del_single_event' value='Delete'> </form>
as you can see i have the form to be processed on a different page which is the del_single.php:
but im getting in the url when delete button clicked:
http://localhost/EMS2/del_single.php?event_id=50&del_single_event=Delete and no deletion occuring.
previously everything was in one page; event.php, and the deletion worked. now im just trying the different page thing and lo behold i can't get it. i googled and there was a solution on stackoverflow but its not working for me. what's wrong with my codes? am i missing something?