一个传值得 问题
在我的程序里 我这样写
function edit_cyc()
{
document.xoYuStudioH.action= "DepartmentzhiwuUpdate.asp ";
document.xoYuStudioH.submit();
return true;
}
<input type= "checkbox " name= "zhiwu_id " value= " <%=rscyc( "zhiwu_id ")%> ">
<input onClick= "javascript:edit_cyc(); " name= "xoYuStudioDo " value= "修 改 " type= "button ">
这样 我把 zhiwu 传到了DepartmentzhiwuUpdate.asp页面 现在我还想再传递一个bm_id 到DepartmentzhiwuUpdate.asp页面 我怎么办 请大家帮忙
------解决方案--------------------设置一个隐含表单
<input type= "hidden " name= "bm_id " value= " <%=rscyc( "bm_id ")%> ">
------解决方案--------------------function edit_cyc()
{
var bm_id;
bm_id=document.form1.bm_id.value;
document.xoYuStudioH.action= "DepartmentzhiwuUpdate.asp?bm_id= "+bm_id;
document.xoYuStudioH.submit();
return true;
}
<input type= "checkbox " name= "zhiwu_id " value= " <%=rscyc( "zhiwu_id ")%> ">
<input type= "hidden " name= "bm_id " value= " <%=rscyc( "bm_id ")%> ">
<input onClick= "javascript:edit_cyc(); " name= "xoYuStudioDo " value= "修 改 " type= "button ">
那你在DepartmentzhiwuUpdate.asp页面的首端写上:
bm_id=trim(request.Querystring( "bm_id "))就可以接收到了。