|
5#
楼主 |
发表于 2006-7-5 08:29:00
|
只看该作者
<%@ Language="VBScript" Codepage="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传验证</title>
</head>
<body>
<!-- #include file="Conn1.asp"-->
<% Dim ConnStr,myConn,mySQL
Dim myName,myImage,myType,mySize
Dim myRank,myLang,myTime,myContent
myName=request.form("name")
myImage=request.form("image")
myType=request.form("type")
mySize=request.form("size")
myRank=request.form("rank")
myLang=request.form("language")
myTime=request.form("refreshtime")
myContent=request.form("content")
mySQL="select * from downloads where Name='" & myName & " ' "
set myRes=myConn.Execute (mySQL)
if myRes.bof and myRes.eof then
mySQL="Insert into downloads(Name,Image,Type,Size,Rank,Language,RefreshTime,Content)"
mySQL=mySQL+"values ('"& myName &" ','"& myImage &"' ,'"& myType &" ','"& mySize &" ','"& myRank &" ','"& myLang &" ',#"& myTime &"#,'"& myContent &" ') "
myConn.Execute (mySQL)
response.write"你已经上传成功!"
%>
<%
else
response.write"上传失败!"
%>
<%
end if
rs.close
set rs=nothing
myConn.close
set myConn=nothing
%>
</body>
</html>
|
|