如何通过表单动作传递多个参数?

How to pass multiple parameters through form action?

。 . 在我的 jsp 页面中,我对按钮使用了 onclick 事件。事件名称是 saveRecord(<%=rs.getInt(id)%>);。这里我传递的参数是 id.

The method is
function saveRecord(id){
    var f=document.form;
    f.method="post";
    f.action='../MesDelivery?id='+id;
    f.submit();
}
Here i want to pass some more multiple parameters like name,address,etc
How to do? pls help me frndz...

如下更改您的函数

function saveRecord(id,name,address){
    var f=document.form;
    f.method="post";
    f.action='../MesDelivery?id='+id+'&name='+name+'&address='+address;
    f.submit();
}