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

从一个网页将数值传递到一个框架网页中的rbottom1的网页中去
a.html:
<form   method= "POST "   action= "../index.asp "   >
      <p> Order   No. <input   type= "text "   name= "shipno "   size= "20 ">    
      <input   onclick= "submit_c() "   type= "submit "   value= "查询 "   name= "B1 "> </p>
</form>
<script   >    
function   submit_c(){      
        rbottom1.src= "3mintro1.asp?shipno= "&request.form( "shipno ");  
        return   true;
}
</script>
index.asp:
<frameset   cols= "200,* "   framespacing= "0 "   border= "0 "   frameborder= "0 ">
<frame   name= "left "   scrolling= "no "   noresize   target= "rtop "   src= "left.asp ">
<frameset   rows= "140,150,* "   scrolling= "yes "   frameborder= "0 "     >
<frame   name= "rtop "   target= "rbottom "   src= "3Msearch.asp "   scrolling= "no "   id= "rtop_id "   >
<frame   name= "rbottom "   src= "3mline.asp "   target= "bottom "   id= 'rbottom_id '>
<frame   name= "rbottom1 "   src= "3mintro1.asp "   target= "bottom "   id= 'rbottom1_id '>
</frameset>
3mintro1.asp是index.asp的一个页面:
<%
txtshipno=request.queryString( "shipno ")
if   txtshipno= " "   then  
txtshipno= "no "
else
%>
<%=txtshipno%>
<%end   if%>
结果是想将a.html的一个数值传递到3mintro1.asp中显示出来!


------解决方案--------------------
a.htm
<form method= "GET " action= "3mintro1.asp " target= "rbottom1 ">
<p> Order No. <input type= "text " name= "shipno " size= "20 ">
<input type= "submit " value= "查询 " name= "B1 "> </p>
</form>