网站制作

本类阅读TOP10

·IIS 安装配置全攻略
·用VS.NET打开网上下载的.NET web项目出错的解决办法
·HTML 4.0 语言快速参考
·限制TextArea区的文字输入数量
·如何在网页上实现进度条
·Apache的配置步骤及测试
·谈谈Jesse James Garrett提到的Ajax
·html基础学习笔记(2)
·页面垂直居中的两种方法
·用asp遍历目录下文件的例子

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Web开发中关于Form提交的问题的总结

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

在Form中,type为submit的按钮会进行数据提交,一般按钮不会提交.
而type为image的图形按钮会进行数据提交.
其他情况都要使用JavaScript调用Form的Submit函数才能提交.

测试代码:

<html>

<head>
 <title>fmLogin</title>
 
</head>

<body>
<script language="javascript">
function update(){
 Form1.submit();
}
</script>
<form name="Form1" method="post" action="abc.htm" id="Form1">
<!--<form id="abc" name="abc" method="POST" action="abc.htm">-->
  <input type="text" name="T1" size="20">
  <input type="reset" value="重置" name="B2">
  <input type="button" value="按钮" name="B3" OnClick="update();">
  <input type="image" name="ImageButton2" id="ImageButton2" tabindex="10" src="D:\long\logo_aurigadoc.gif" border="0" width="142" height="39" />
</form>
 
</body>

</html>




相关文章

相关软件