Js实现!!<a href="http://www.126.com" onclick="SubForm(this.href,'1')"> AAA </a> 
<a href="http://www.163.com" onclick="SubForm(this.href,'2')"> BBB </a> 
<a href="http://www.126.com" onclick="SubForm(this.href,'3')"> CCC </a> 
<form name="form1" id="form1" method="get">
<input name="id" type="hidden" />
</form>
<script type="text/javascript">
function SubForm(a,b){
document.form1.action=a;
document.form1.id.value=b;
document.form1.submit();
return false;
}
</script>上面的 form 的method是get只是为了让可以知道它确实把参数提交了过去。
用的时候,把method改为post