sp; rs.update rs.close response.write "<script language='javascript'>alert('添加记录成功')</script>" end if end if %>
********************************************************************** /*fupload.inc*/
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT> Dim UploadSizeLimit
'********************************** GetUpload ********************************** '.Name name of the form field (<Input Name="..." Type="File,...">) '.ContentDisposition = Content-Disposition of the form field '.FileName = Source file name for <input type=file> '.ContentType = Content-Type for <input type=file> '.Value = Binary value of the source field. '.Length = Len of the binary data field Function GetUpload() Dim Result Set Result = Nothing If Request.ServerVariables("REQUEST_METHOD") = "POST" Then 'Request method must be "POST" Dim CT, PosB, Boundary, Length, PosE CT = Request.ServerVariables("HTTP_Content_Type") 'reads Content-Type header 'response.write CT 'application/x-www-form-urlencoded If LCase(Left(CT, 19)) = "multipart/form-data" Then 'Content-Type header must be "multipart/form-data" 'This is upload request. 'Get the boundary and length from Content-Type header PosB = InStr(LCase(CT), "boundary=") 'Finds boundary If PosB > 0 Then Boundary = Mid(CT, PosB + 9) 'Separetes boundary Length = CLng(Request.ServerVariables("HTTP_Content_Length")) 'Get Content-Length header if "" & UploadSizeLimit<>"" then UploadSizeLimit = clng(UploadSizeLimit) if Length > UploadSizeLimit then ' on error resume next 'Clears the input 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页 |