search.php shows the user a form where he can search the student table by student number, surname or course attended.
the user then clicks a "Search" button and is taken to search_studens.php where the database is searched based on the given input.
A table is shown with the results along with 2 buttons "Search" and "Delete".
I want the user to be taken back to search.php when "Search" is clicked and when "Delete" is clicked the records returned by the search shold be removed.
My problem is the only way i've been performing php actions up to now is with somthing like
Code: Select all
<form action="search_student.php" method="POST">Is there a way to link a php function to the button press without going to another PHP page... but if i have to how do i pass on the info about the search field and content?
thanks.. hope that makes sense.