| 发表于:2008-01-22 15:08:55 楼主 |
我的意思是,可以通过index.asp?n1=1&n2=2这样的连接来传递n1和n2,但我有未知个参数index.asp?n1=1&n2=2......&nn=n,我不能确定n,又无法用循环,因为我要用fso来geturl(),所以不能用post加循环来提交这么多参数. 我通过这个来接收参数 <% bj=trim(request("bj")) rwdm=trim(request("rwdm")) do while not aac=0 EXECute("xt"&ii&"="""&trim(request("xt"&ii&""))&"""") EXECute("ck"&ii&"="""&trim(request("ck"&ii&""))&"""") aac=aac-1 %> aac可以通过查找数据库来确定,然后 <% dim wstr,str,url,start,over,id1 sid=1 url="http://192.168.154.144/n/m3print2.asp?keyword="&id&"&bj="&bj&"&xt1="&xt1&"&&"&xt2="&xt2&"&......"问题在这,没办法确定有几个xt wstr=gethttppage(url) start=newstring(wstr," <html> ") over=newstring(wstr," </html> ") body=mid(wstr,start,over-start) '这里可能要合理加减几个字节 set fso = server.createobject("scripting.filesystemobject") fname=sid & ".htm" fpath=server.mappath(".") '当前目录下生成htm文件 if fso.fileexists(fpath & "\" & fname)=true then response.write "该文件已经存在!" else set fout = fso.createtextfile(fpath & "\" & fname) fout.writeline body fout.close set fout=nothing set fso=nothing %> |
|
|
|
|