ASP generated static HTM page Basic code!
The following dotted box is the specific code for the mk.asp file:
--------------------------------------------------------------------------------
<%
Filename= "Test.htm"
If request ("Body") <> "" Then
Set fso = Server.CreateObject ("Scripting.FileSystemObject")
Set fout = FSO. CreateTextFile (Server.MapPath ("&filename&"))
Fout.write "title (title):" & Request.Form ("title") & "<br>"
Fout.write "Content (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= "generated" >
</form>
--------------------------------------------------------------------------------
Then in the browser input mk.asp this page, completed, will generate test.htm this file, the contents of which you have just completed.