古典舞霸气视频:请大家帮个忙,谢谢!

来源:百度文库 编辑:高考问答 时间:2024/05/09 01:56:25
<% if request("action")="photo" then
set upload=new upload_5xsoft
set file=upload.file("photo")
fileExt=lcase(right(file.filename,4))

if fileEXT<>".gif" and fileEXT<>".jpg" then
response.write"<script>alert('图片格式不对,请重新上传!');location='"&request.ServerVariables("HTTP_REFERER")&"'</script>"
response.end
end if
if file.fileSize>0 then
formPath="../upfile/photo"
'在目录后加(/)
if right(formPath,1)<>"/" then
formPath=formPath&"/"
end if
vfname = filename(now())
fname = vfname & "." & GetExtendName(file.FileName)
file.SaveAs Server.mappath(formPath&fname) ''保存文件
%>
<script>
parent.form.url.value+='upfile/photo/<%=fname%>'
//parent.frmadd.dreamcontent.value+='[img]upload/<%=ufp%>[/img]'
location.replace('Admin_Upphoto.asp')
<form method="POST" action="Admin_Upfile.asp?action=work" enctype="multipart/form-data">
<input type="file" name="work" size="1"style="background-color: #BDE2F1; border: 1 solid #ced7f7">
<input type="submit" value="上传" name="B1"style="height: 20;background-color: #ECE9D8; border: 1 solid #ced7f7">
</form>
图片能添加到文件夹里,但是在图片地址的表单上不显示地址。

//location.replace('Admin_Upphoto.asp') 试试
具体不了解你是怎么上传的?用框架 还是直接在本页 或是 打开新窗口?