1、代码这个case
Case "receive.htm"
For Each key As String In e.Files.Keys
For Each fln As String In e.Files(key)
e.SaveFile(key,fln,"d:\web\uploadfiles\" & e.PostValues("wz") &"\"& fln) '保存接收到的文件
Next
Next
e.WriteString("OK|xm|" & e.PostValues("xm"))
2、js
function afterSubmit(result){
hide("tst1");
if(result){
var vals=result.split("|");
if(vals.length==3 && vals[0] == 'OK'){
show("tst2");
document.cookie = vals[1] + '=' + vals[2] + ';expires=600000'
location="upload.htm?v="+Math.random();
}
else{
show("tst3",2000);
}
}