📄 user_add.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=pass.asp-->
<!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=gb2312" />
<title>无标题文档</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #E7EEF5;
}
-->
</style></head>
<body>
<!--#include file="conn.asp"-->
<%
if request("act")="add" then
username=trim(request("username"))
password=trim(request("password"))
zjh=trim(request("zjh"))
name=trim(request("name"))
xb=trim(request("xb"))
conn.execute("insert into [user](username,password,name,xb,zjh)values('"&username&"','"&password&"','"&name&"','"&xb&"','"&zjh&"')")
response.write"<script language='javascript'>alert('添加成功!');window.location.href='userlist.asp';</script>"
end if
%>
<center><form action="?act=add" method="post" name="form1" target="_self" id="form1">
<table width="500" border="0" cellpadding="2" cellspacing="1" bgcolor="#C5D5E4">
<tr>
<td height="35" colspan="2" align="center" bgcolor="#C5D5E4"><strong>添加用户</strong></td>
</tr>
<tr>
<td width="187" align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">账号:</td>
<td width="302" height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input name="username" type="text" class="wenjian huise" id="username" size="30"/></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">密码:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input name="password" type="text" id="password" value="123456" size="30" /></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">姓名:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><span class="bk-bottom">
<input name="name" type="text" class="wenjian" id="name" size="30" />
</span></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">性别:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><label>
<input name="xb" type="radio" id="xb_0" value="男" checked="checked" />
男</label>
<label>
<input type="radio" name="xb" value="女" id="xb_1" />
女</label></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">证件号:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><span class="bk-bottom">
<input name="zjh" type="text" class="wenjian" id="zjh" size="30" />
</span></td>
</tr>
<tr>
<td height="40" colspan="2" align="center" valign="middle" bgcolor="#E7EEF5"><input name="editchk" type="submit" class="button" value=" 添 加 " />
<input name="button" type="reset" class="button" id="button" value=" 重 置 " />
</span></td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -