Hi,
If my Understanding is correct regarding your mail, then this script may help you. Please check it.
<style>
body{font-family:verdana,arial;font-size:11px}
</style><body>
<script language="JavaScript" type="text/JavaScript">
function subfom(field_name, field_value){
/*alert(field_name);
alert(field_value);*/
alert ("The Form will get submited at FIELDNAME = "+field_name+" and FIELDVALUE = "+field_value);
document.test.action = "page_name.php?fieldName="+field_name+"&fieldValue="+field_value;
document.test.submit;
}
</script>
<form name="test" method="post">
<b>NOTE : </b>You have to replace the (page_name.php) in the javascript with the name of the page you want to submit the form.
<br>Also the (fieldName and fieldValue) in javascript with the variable you are using in the php page.
<br><br>
<a href="#" onClick="javascript: subfom('order_by', 'itemArtists');">Artists</a>
<br><br>
<a href="#" onClick="javascript: subfom('order_by', 'itemSongs');">Songs</a>
<br><br>
<a href="#" onClick="javascript: subfom('order_by', 'itemAlbums');">Albums</a>
<br><br>
<a href="#" onClick="javascript: subfom('order_by', 'itemTracks');">Tracks</a>
</form>
</body>
Regards,
http://www.executz.com
(Visit the site for more details)