Create a form first, and save a name for yourself. For example: Shanghai treatment Impotence Hospital
Xxx.html
〈form action= "Word_create.asp"
Name:〈input type= "text" name= "name" size= "maxlength=" 100 "
Email:〈input type= "text" name= "Email" size= "maxlength=" 100 "
Comments:
〈textarea cols= "rows=" "name=" comments "〉〈/textarea〉"
〈input type= "Submit" value= "Submit"
〈/form〉
ASP program for processing forms
Word_create.asp
〈% Response.ContentType = "Application/msword"%〉
〈html〉
〈% strName = Request.QueryString ("Name")
Stremail = Request.QueryString ("Email")
strcomments = Request.QueryString ("Comments")
%〉
〈head〉
〈/head〉
〈body〉
〈p align= "Right" 〉〈%=formatdatetime (now,2)%〉〈/p〉
Dear 〈%= strname%〉:
My email is: 〈%= stremail%〉
My content is: 〈%= strcomments%〉
〈/body〉
〈/html〉
ASP Programming Example: an example of creating word from a form