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