ASP generates static HTM page basic code!

xiaoxiao2021-03-06  66

The following dashed box is the specific code of the mk.asp file:

-------------------------------------------------- ------------------------------

<%

FILENAME = "Test.htm"

IF Request ("Body") <> ""

SET FSO = Server.createObject ("scripting.filesystemObject")

Set fout = fso.createtetextfile (Server.Mappath ("& FileName &"))

Fout.write title (Title): "& Request.form (" Title ") &"
"

Fout.write ":" & Request.form ("Body")

Fout.close

Set fout = Nothing

SET FSO = Nothing

END IF

%>