This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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();