I have a selection form that, once submitted, takes users to a page that shows a roster for the sports team they selected. The form (index.php) passes the ID of the team they selected [along with some other hidden data] to the form handler (buildselect.php) and querys the database for the players associated with that team. Easy.
The form handler works fine and all is well with the world...
However, in that display/form handler page (buildselect.php), I want to give the user the ability to edit the lineup: remove players individually, select eligible players from a list to add, reload with a default lineup, etc. I have written the scripts to do so, each being its own php 'page' and they work fine-- but I've come across a stumbling block:
After the delete/add/default load/etc pages complete their task I'd like to give the user the ability to return to the display page directly and view the lineup they've just edited. Just a simple 'Return to the lineup' link. The problem is, the lineup loaded in buildselect.php is based upon form input. Now I can create a hidden form that passes all the data buildselect.php would require to reload the right data for the user, however I wanted to avoid having the 'Return to lineup' link be a submit button...
So basically I was wondering if it's possible to have a form that submits using a text link instead of a button...
Thanks!