再发个问题,在线等,解决后马上散分!
</SCRIPT>
<script language= "javascript " type= " ">
init();
</script>
<form name= "form1 " action= "guestroom_taking_report.jsp " method= "POST ">
<input type= "hidden " name= "test1 " value= "Last_Update_Date "/>
<input type= "submit " value= "submit "/>
<input type= "text " name= "Last_Update_Date " size= "12 " maxlength= "12 " >
<input type= "button " name= "change2 " value= "选择时间 " onClick= "show_cele_date(change2, ' ', ' ',Last_Update_Date) ">
</form>
<img src= "images/main.jpg " width= "1100 " height= "1100 " border= "0 " usemap= "#Map ">
<map name= "Map ">
<area shape= "rect " coords= "66,357,165,384 " href= "total_taking_report.jsp " >
<area shape= "rect " coords= "66,389,165,413 " href= "guestroom_taking_report.jsp ">
<area shape= "rect " coords= "65,421,164,441 " href= "repast_taking_report.jsp ">
</map>
</body>
</html>
我想要的效果是用户在点击guestroom_taking_report.jsp页面后 出现相应的数据,
而不是在用户按了submit按纽 弹到guestroom_taking_report.jsp页面 ,请问该怎么解决?
------解决方案-------------------- "点击guestroom_taking_report.jsp页面后 "是什么意思
是不是这个意思?
<a href= "guestroom_taking_report.jsp?test1=Last_Update_Date&Last_Update_Date=2007-04-12 "> 查看相应数据 </a>
你直接把参数都放到链接里面就可以了。
------解决方案-------------------- <area shape= "rect " coords= "66,389,165,413 " href= "# " onclick= "document.form1.submit(); ">
------解决方案--------------------方法很多。
1 你可以在此页面加一隐藏域,然后另一页request 可以得到。
2 通过href= "total_taking_report.jsp?XXX " 的url传递参数 另一页也可以得到。
方法很多,看你自己怎么用。