把action定為本身的頁面
如
a.asp:
<%
'asp code
%>
<form action="a.asp" method="post" name="fm">
...
</form>
你是不是想這樣?
如
a.asp:
<%
'asp code
%>
<form action="a.asp" method="post" name="fm">
...
</form>
你是不是想這樣?
解决方案 »
- 请求大师指点下这个JS列表我想让不点击就显示怎么弄?
- ext Toolbar 上的查询文本框值怎么获取上一个grid 选中的行值啊?
- 使用jquery的ajax方法获取后台json数据,但是一直报"parsererror"
- 简单问题:改变frame的cols
- 关于遍历getElementsByName过来的数组的问题。
- 写一个函数实现向一个文件框发送一个enter键消息?
- 问一个根据屏幕分辨率改变层定位问题
- 如何在a href 中提交一个表单
- 请教:我打印一个页面,但不想打印出上面的2个按钮,请问如何实现?
- HTML中获取session中的值?
- 我這段代碼為什么沒用呢?
- ie6.0 text的dbclick()中显示模式窗体,后者不出现.
history.go(-1)
</script>
我想只能用XmlHttp直接POST了!xmlHttp.open("POST", "xxxxxxx", false);......
test.htm
--------------------------------------------------------------------------------
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script>
function submitdata()
{
var obj=window.frames("DFrm").document;
obj.all("bh").value=tzid;
obj.all("DFrm").submit();}
</script>
</head><body>
<p><input type="text" name="bh" id="bh" size="20"><input type="submit" value="提交" name="B1" onclick="submitdata()"></p>
<iframe name="DFrm" id="DFrm" src="test.asp" width=0 height=0></iframe> </body></html>
---------------------------------------------------------------------------------
test.asp
---------------------------------------------------------------------------------
<%
数据处理
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="" name="DFrm" id="DFrm">
<input type="text" name="bh" id="bh" size="13" class="input">
<input type="hidden" name="result" value=100>
<input type="button" onclick="DFrm.submit();">
</form> </body></html>
<head></head>
<body>
<form target="actfrm" action="b.php">
<input type="text" name="msg">
</form>
<iframe marginheight=0 marginwidth=0 frameborder=0 width=0 height=0 scrolling=no src="about:blank" name="actfrm">
</body></html>
------------------------------------------------------------------------------
<script>
function submitdata()
{
var obj=window.frames("DFrm").document;
obj.all("bh").value=document.all("bh").value;
obj.all("SFrm").submit();}
-----------------------------------------------------------------------------
</script>