页面不刷新,提交表单

来源:互联网 发布:淘宝买家信誉提升 编辑:程序博客网 时间:2024/05/29 11:05

表单提交的时候,提交到ifrmae页面中,本页面不刷新,然后在iframe页面中接收(象平常发送到第二页面一样接收),就可以了

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<form name="form1" method="post" action="abc_update" target="upload">
  <p>
    <input type="text" name="textfield">
  </p>
  <p>
    <input type="text" name="textfield2">
  </p>
  <p>
    <input type="submit" name="Submit" value="提交">
  </p>
</form>
<iframe src="abc_update.asp" name=update height=0 width="0"></iframe>
</body>
</html>