資源描述:
《使用asp生成html文件--》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、使用ASP生成HTML文件>><!--index.htm-----------------------------------------------><!DOCTYPEHTMLPUBLIC-//L4.01Transitional//EN.l4/loose.dtd><html><head><title>UntitledDocument</title><metahttp-equiv=Content-Typecontent=text/html;charset=gb2312></head><
2、body><tablename=form1method=postaction=send.asp><tablee=msgcols=100roitname=Submitvalue=Submit><inputtype=resetname=Submit2value=Reset></div></td></tr></table></form></td></tr></table></body></html>'//send.asp<%f
3、unctionchan_time(shijian)'轉(zhuǎn)換日期時間函數(shù)s_year=year(shijian)iflen(s_year)=2thens_year=20s_years_month=month(shijian)ifs_month<10thens_month=0s_months_day=day(shijian)ifs_day<10thens_day=0s_days_hour=hour(shijian)ifs_hour<10thens_hour=0s_hours_minute=minute(shijian)ifs_minute<10thens_minute
4、=0s_minutechan_time=s_years_months_days_hours_minuteendfunctionfunctionchan_data(shijian)'轉(zhuǎn)換日期時間函數(shù)s_year=year(shijian)iflen(s_year)=2thens_year=20s_years_month=month(shijian)ifs_month<10th123下一頁>>>>這篇文章來自..,。ens_month=0s_months_day=day(shijian)ifs_day<10thens_day=0s_daychan_data=s_years_mo
5、nths_dayendfunctionfunctionchan_file(shijian)'轉(zhuǎn)換日期時間函數(shù)s_month=month(shijian)ifs_month<10thens_month=0s_months_day=day(shijian)ifs_day<10thens_day=0s_days_hour=hour(shijian)ifs_hour<10thens_hour=0s_hours_minute=minute(shijian)ifs_minute<10thens_minute=0s_minutes_ss=second(shijian)ifs_
6、ss<10thens_ss=0s_sschan_file=s_months_days_hours_minutes_ssendfunctiontop=<html><head><title>ne=</body></html>msg=request.Form(msg)msg=replace(msg,vbcrlf,)msg=replace(msg,chr(9),)msg=replace(msg,,nbsp;)msg=replace(msg,r,<br>)msg=replace(msg,,<br>
7、)msg=topmsgbotomSetfs=Server.CreateObject(Scripting.FileSystemObject)all_tree2=server.mappath(nep;chan_data(noize'使用系統(tǒng)計時器來初始化亂數(shù)產(chǎn)生器pass=rnd(pass)pass=get_pass(pass)pass=left(pass,10)file1=passfiles=file1.txtfilez=all_tree2f