📄 qhdj.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<title>缺货登记</title>
<link href="css.css" rel="stylesheet">
</head>
<body>
<%
if request("action")="save" then
if request.form("connect")="" then
response.write"<script language=javascript>alert('用户名必须填写');this.location.href='javascript:history.go(-1)';</script>"
response.end
end if
if request.form("content")="" then
response.write"<script language=javascript>alert('内容必须填写');this.location.href='javascript:history.go(-1)';</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from qhdj"
rs.open sql,conn,3,3
rs.addnew
rs("connect")=trim(request("connect"))
rs("content")=trim(request("content"))
rs("date")=now()
rs("ip")=request.servervariables("remote_addr")
rs.update
rs.close
set rs=nothing
response.write "<script language=javascript>alert('您的登记已成功提交,谢谢!');window.location.reload('javascript:window.close()')</script>"
response.end
end if
%>
<table width="460" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="tabbgcolorli">
<td> <font color="#FFFFFF">☆ 缺货登记</font></td>
</tr>
</table>
<br>
<table width="460" height="215" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFA6DF">
<form name="qhdj" action="qhdj.asp?action=save" method="post">
<tr bgcolor="#FFFFFF">
<td width="25%">您的姓名或者代号:</td>
<td width="75%"><input name="connect" type="text" class="border" >
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>缺货登记内容(请写明您的联系方式)</td>
<td><textarea name="content" cols="40" rows="10" class="border"></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><div align="center">
<input type="submit" name="submit1" class="border" value="提交">
<input type="reset" name="reset1" class="border" value="重写">
</div></td>
</tr>
</form>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -