oldfilename =replace(replace(replace(replace(cstr(now())," ",""),"-",""),":",""),"/","") &"_"&file.FileName '获取上传文件的名字
lname=oldfilename
la=split(lname,"/")
num=ubound(la)
lb=split(la(num),".")
num2=ubound(lb)
'response.Write("."&lb(num2))
typed="."&lb(num2)
response.Write(typed) '这里能正常输出文件名后缀如 .jif .asp 等
'下边我的判断有问题吗,为啥出错呢
if typed!="jpg" || "gif" then
%>
<script>
alert("只能上传jpg或者gif格式图片");
history.back(1);
</script>
<%
else
......
if typed!="jpg" || typed!=""gif" then
谢谢了