欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP生成靜態(tài)htm頁面基本代碼

 更新時(shí)間:2007年09月01日 19:08:24   作者:  
以下虛線框內(nèi)為mk.asp文件的具體代碼:
--------------------------------------------------------------------------------
<%
filename="test.htm"
if request("body")<>"" then
set fso = Server.CreateObject("Scripting.FileSystemObject")
set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.write "標(biāo)題(title):" & request.form("title") & "<br>"
fout.write "內(nèi)容(body):" & request.form("body")
fout.close
set fout=nothing
set fso=nothing
end if
%>
<form name="form1" method="post" action="">
<input name="title" size=18><br>
  <textarea name="body"></textarea>
  <br>
  <br>
  <input type="submit" name="Submit" value="生成">
</form>

--------------------------------------------------------------------------------
然后在瀏覽器輸入mk.asp這個(gè)頁面,填寫完畢后,就會(huì)生成test.htm這個(gè)文件,里面的內(nèi)容就是你剛才填寫的。


相關(guān)文章

最新評(píng)論