This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line! See this thread for details.
I have one form with many links in it. Each link has its own specifics to be submitted. Let me try to make it simple and explain:
The first link is associated with sortKey="firstName" and orderKey="ASC" The second link is associated with sortKey="firstName" and orderKey="DESC" The third link is associated with sortKey="lastName" and orderKey="ASC" The fourth link is associated with sortKey="lastName" and orderKey="DESC"
Therefore, all the text fields, text area, menu selections in that form together with the link specifics are submitted when each link is clicked.
You could have 2 hidden fields. 1 for the sortKey and 1 for the orderKey. When you click a link, change the values of the hidden fields depending on which link you clicked and then to document.myForm.submit();