upload.asp
<%
Function GetFileName(ByVal strFile)
If strFile <> "" Then
GetFileName = mid(strFile,InStrRev(strFile, "\")+1)
Else
GetFileName = ""
End If
End function
strFileName = Request.Form("file1")
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = 1 ' adTypeBinary
objStream.Open
objStream.LoadFromFile strFileName
objStream.SaveToFile Server.MapPath(GetFileName(strFileName)),2
objStream.Close
Response.Write Request("txt")
%>
upload.htm
<form name="FORM" action="upload.asp" method="post">
<input type="file" name="file1" style="width:400" value=""><br>
<input type="text" name="txt"><br> <input type="submit" name="submit" value="上传">
</form>
======================================================================
把红色部分改成你想取的名字