用一个方法来提交表单
cyr11 2009-12-08 09:21:53 用一个方法来提交表单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="JavaScript" type="text/javascript">
function a(){
这里写什么可以提交表单
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="aa.php">
<label>
<input type="text" name="textfield" />
</label>
<p>
<label>
<input type="button" onclick="a();" id="reg_submit" name="Submit" value="按钮" />
</label>
</p>
</form>
</body>
</html>