ok, so ive been dealing with this problem for a few days now and i cant get it going
i have an admin funciton that searches for matching records based on some criteria (ex. name).... then i have a page that displays the matching records, with a radio button beside each record
i want to have two buttons ('edit' and 'delete') that do different things.... the edit button will grab the info from the table (the row with the radio button beside it) and jump to a new page where this information will be edited in text fields, then saved.... the delete button will take the user to a page that shows the record (that had the radio button clicked) and gives the user a message stating that the record was deleted
the problem im having is that for each form you can only have one action
echo "<form action='admin_edit.php' method='post'>\n";
so when you click on either of the buttons, they both send you to the same place (in the above example, both buttons would send you to admin_edit.php)
there must be a way for each button to grab the info from the form and then send you to a different place (ie. delete and edit send you to different pages)
ive searched and searched these boards, and the only way seems to be checking if a var is set on the name of the button
if (isset($_POST["name"]))
do {some actions}
the problem with this is that it doesnt seem to work.... i can check if the var is set just fine, but then i cant jump to another page with the information from the form
can anybody help me figure this out? it would be GREATLY appreciated, because im at wits end on this one :queasy: