日期:2014-05-17  浏览次数:20792 次

高分求助哦 急! 不知道怎么编写
<Form   method= "psot "   >
 
<input   type= "submit "   value= "提交修改 "   name= "btnSubmit "   >
  </form>  
         
 
<%strSQL1= "UPDATE   "&gx2& "   SET   零件名称= ' "&session( "LJMC ")& " ',工序号= ' "&session( "GXH1 ")& " ',工步内容= ' "&request( "GBN ")& " '   WHERE   工步= ' "gxh0 " ' "
    objConn1.Execute(strSQL1)

这里的gxh0是父页面通过 <A   HREF= 'gbkp.asp?gbh0= <%=js(2)%> '   > 传递来的
在提交按钮按下后,gbh0丢失,没法继续使用这个页面,因为前面数据库的连接用到
gxh0,所以想按钮上附加事件,提交的同时在执行一遍 <A   HREF= 'gbkp.asp?gbh0= <%=js(2)%> '   > 类似的.不知怎么编写,求高手帮忙
gbh0   不能用cookies,   父页面不能用session提交过来

------解决方案--------------------
<Form method= "psot " >

<input type= "submit " value= "提交修改 " name= "btnSubmit " onclick= "javascript:document.location.href= 'gbkp.asp?gbh0= <%=js(2)%> ' ">
</form>
这个可以在按下时执行a href= 'gbkp.asp?gbh0= <%=js(2)%> '但问题是这样有用吗?
------解决方案--------------------
修正一下:
<Form method= "psot " action= "gbkp.asp?gbh0=request( "gbh0 ") ">
------解决方案--------------------
加个隐藏域
<input type= "hidden " name= "gbh0 " value= " <%=request( "gbh0)%> ">