⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upfile.asp

📁 中国114网搜索系统 版  本: 文件大小:580 KB 软件语言:简体中文 授权方式:免费版 相关链接:程序演示 开 发 商: 运行环境:ASP源码
💻 ASP
字号:
<!-- #include file=../database.asp -->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from ourusers where username='supervisor'"
rs.open sql,conn,1,1
if not rs.eof then
	if trim(rs("pass"))<>trim(session("pass")) then
		response.write "<br>错误的密码!"
		'rs.close
		'set rs=nothing%>
		<script>top.location='../login.asp';</script>
		<%
		'response.write "rspass:"&rs("pass")
		'response.write "sesseionpass:"&session("pass")
		conn.close
		set conn=nothing
		response.end
	else
		rs.close
		set rs=nothing
		conn.close
		set conn=nothing
	end if
else
	response.write "错误:用户不存在!"
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	response.end
end if
%>
<body topmargin=0 leftmargin=0 bgcolor=ccbbaa>
<!--
<form method=POST action=upfile2.asp name=ff enctype=multipart/form-data>
上传网址文件
<input type=file name=photo><input type=button value=开始上传 name=send>
</form>
-->
<form name="form1" enctype="multipart/form-data" action="upfile2.asp" method="post">
  <input type="file" name="photo">
  <input type="submit" name="Submit" value="上传">
</form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -