欢迎来到天天文库
浏览记录
ID:20443803
大小:60.50 KB
页数:4页
时间:2018-10-13
《使用asp生成html文件》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、使用ASP生成HTML文件>>教育资源库<!--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)'转换日期时间函数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)'转换日期时间函数s_year=year(shijian)iflen(s_year)=2thens_year=20s_years_month=month(shijian)ifs_month
5、<10th123下一页>>>>这篇文章来自..,。ens_month=0s_months_day=day(shijian)ifs_day<10thens_day=0s_daychan_data=s_years_months_dayendfunctionfunctionchan_file(shijian)'转换日期时间函数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'使用系统计时器来初始化乱数产生器pass=rnd(pass)pass=get_pass(pass)pass=left(pass,10)file1=passfiles=file1.txtfilez=all_tr
此文档下载收益归作者所有