📄 addform.asp
字号:
<%option explicit%>
<html>
<head>
<title>bbs论坛</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="general.css" rel="stylesheet" type="text/css">
<script language="JAVASCRIPT">
<!--
function check_Null(){
if (document.form1.title.value==""){
alert("主题不能为空!");
return false;
}
if (document.form1.user_id.value==""){
alert("用户名不能为空!");
return false;
}
return true;
}
// -->
</script>
</head>
<body>
<h1 align="center">BBS论坛</h1>
<table width="708" border="1" bordercolorlight="#80BFFF" bordercolordark="#80BFFF" cellspacing="0" cellpadding="0" bgcolor="#80BFFF" align="center">
<tr>
<td width="100%">
<a href="bbslist.asp"><font color="#FFFFFF">【返回论坛】</font></a>
</td>
</tr>
</table>
<table border="1" width="708" height="400" bordercolorlight="#80BFFF" cellspacing="0" cellpadding="2" bordercolordark="#80BFFF" bgcolor="#FFFFFF" align="center">
<tr>
<td width="100%" valign="top" align="center">
<br><br>
<form action="add.asp" method="post" name="form1" onsubmit="javascript: return check_Null();">
<table border="0" width="86%" cellspacing="0" cellpadding="0" class="s2" align="center">
<tr>
<td width="20%">文章主题:</td>
<td><input type="text" name="title" size="49" class="inputbox"></td>
</tr>
<tr>
<td width="20%">文章内容:</td>
<td><textarea rows="10" name="body" cols="60" class="inputtext"></textarea></td>
</tr>
<tr>
<td width="20%">用户名:</td>
<td><input type="text" name="user_id" size="20" class="inputbox"></td>
</tr>
<tr>
<td width="20%">email:</td>
<td><input type="text" name="user_email" size="30" class="inputbox"></td>
</tr>
<tr>
<td colspan="2" align="center">
<br>
<input type="submit" value="确定提交" name="B1" class="inputbutton">
<input type="button" value="返回论坛" name="返回论坛" onclick="javascript:history.back();" class="inputbutton">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="708" border="1" bordercolorlight="#80BFFF" bordercolordark="#80BFFF" cellspacing="0" cellpadding="0" bgcolor="#80BFFF" align="center">
<tr>
<td width="100%">
<a href="bbslist.asp"><font color="#FFFFFF">【返回论坛】</font></a>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -