📄 add.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("a")="" then
response.redirect "index.asp"
end if
gename=request.form("gename")
address=request.form("address")
if gename<>"" then
sql="select * from gequ"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs.addnew
rs("name")=gename
rs("address")=address
rs.update
session("username")=gename
response.redirect "ok.asp"
end if
%>
<html>
<head>
<style type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: 1; margin-bottom: 1 }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>添加</title>
</head>
<body>
<div align="center">
<center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<form action="" method="post">
<tr>
<td width="100%" colspan="2"></td>
</tr>
<tr>
<td width="42%" align="right">歌曲名称:</td>
<td width="58%"><input type="text" name="gename" size="30"></td>
</tr>
<tr>
<td width="42%" align="right">歌曲地址:</td>
<td width="58%"><input type="text" name="address" size="30" value="http://"></td>
</tr>
<tr>
<td width="100%" align="right" colspan="2">
<p align="center"><input type="submit" value="提交" name="submit">
<input type="reset" value="取消" name="reset"> <a href="index.asp">返回首页</a></td>
</tr>
</form>
</table>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -