The specific code of the mk. asp file in the dotted box below:
--------------------------------------------------------------------------------
<%
Filename = "test.htm"
If request ("body") <> "then
Set fso = Server. CreateObject ("Scripting. FileSystemObject ")
Set fout = fso. CreateTextFile (server. mappath ("" & filename &""))
Fout. write "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 = "generate">
</Form>
--------------------------------------------------------------------------------
After entering the mk.asp page in the browser, the file test.htm will be generated. The content in the file is what you just filled in.