?? 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 + -