http://blog.sina.com.cn/s/blog_68b4ec9b01014jc0.html

Html_form中不同的按钮点击实现传递不同参数

 (2012-08-21 16:50:58)
标签: 

it

分类: 前端/JS/CSS/JQuery

<form   name= "form1 "   method= "post "   action= "ccc.php?abc=??? ">

<input   type= "text "   name= "textfield ">

<input   name= "Button1 "  type= "submit " value= "Button1 " onclick= "form1. 参数名.value= '参数值1 ' ">

<input   name= "Button2 "   type= "submit "   value= "Button2 "   onclick= "form1. 参数名.value= '参数值2 ' ">

<input   type= "hidden "   name= "参数名 ">

</form>