I see you use the following to return to list page.
Can you tell me how this works, I'd like to use it in some event code.
What makes that a=return know where to go back to?
<a href="pets_list.php?a=return">Back to list</a>
I notice it will return to the page where you clicked an action.
If you were on page 3 of 10 for example, and edited a record,
then after the record is saved, you click return to list,
and you are back to page 3 showing updated record.