I have a very long "admin" page where I update 3 databases on one page. It displays the entirety of all 3 tables and has the <form>
of each below them that I use to update/add/delete rows.
Currently, if I am updating the 2nd or 3rd table, I have to scroll down to the middle/bottom of the page each time I adjust something. Is there a way to automatically scroll the page back down to the last place I had it.
one of my "submit" buttons looks like this:
<form name="UpdateMedRow" METHOD="post" ACTION="cgupdate.php">
.... //<tr> <td> in this section for the different items to update
<tr><input type="submit" value="Update" name="updateMedRow"/></tr><br/>
then it goes to cgupdate.php - does whatever function I tell it - in this case, UPDATE
medRow, then uses a header to jump back to cgadmin.php
header( 'Location: http://www.example.com/cgadmin.php' ) ;
?>
Any suggestions on how I could get that header
to load the same location on the cgadmin page, or am I doomed since I'm leaving the page and coming back?