国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JSP > 正文

jsp form表單方法示例

2024-09-05 00:21:06
字體:
來源:轉載
供稿:網友
jsp form表單方法示例代碼,大家可以看下,對于新手來說是必備的知識。

1.代碼:

復制代碼 代碼如下:


<%--
Document : index
Created on : 2009-10-4, 13:56:46
Author : lucifer
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function giveFocus(){
document.login.user.focus()
}
function submitForm(){
document.login.submit()
}
function resetForm(){
document.login.reset()
document.login.user.focus()
}
</script>
</head>
<body bgcolor="#c0c0c0" link="#999999" alink="#999999" vlink="#999999"
onload="giveFocus()">
<center>
<font size="+2">
<br><br>
<B>LOGIN</B>
</font>
<br><br><br><br>
<form method="post"
action="http://wenda.tianya.cn/wenda/thread?tid=129583d1f709f89f">
<table>
<tr>
<td>
<font size="+1">
<B>User ID</B>
</font>
</td>
<td>
<font size="+1">
<input type="text" maxlength="9">
</font>
</td>
</tr>
<tr>
<td>
<font size="+1">
<B>Password</B>
</font>
</td>
<td>
<font size="+1">
<input type="password"
maxlength="8">
</font>
</td>
</tr>
</table>
<br><br><br>
<font size="+1">
<B>
<input type="button" value="LOGIN">

<input type="button" value="RESET">
<br>
</B>
</font>
</form>
</center>
</body>
</html>


2.結論:
"formname".submit()作用與<input type="submit" ......>相同,就是提交表單數據,如果button和submit同時存在,只有submit有提交表單的作用
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 利川市| 攀枝花市| 翁源县| 鹤峰县| 屏山县| 信阳市| 门头沟区| 田阳县| 宜都市| 铁岭市| 江达县| 莱阳市| 楚雄市| 寻甸| 阜城县| 政和县| 大埔县| 浏阳市| 西和县| 炉霍县| 屏东市| 耿马| 融水| 内丘县| 邵阳市| 临猗县| 富锦市| 公安县| 肃北| 昭平县| 内江市| 安多县| 那曲县| 德惠市| 正定县| 潼关县| 旌德县| 兴义市| 新营市| 黄浦区| 嘉祥县|