먼저 양식을 작성하고 이름을 저장하십시오.
xxx.html
<양식 작업=word_create.asp>
이름: <입력 유형=텍스트 이름=이름 크기=50 최대 길이=100>
이메일: <입력 유형=텍스트 이름=이메일 크기=50 최대 길이=100>
댓글:
<textarea cols=50 행=10 name=comments></textarea>
<입력 유형=제출 값=제출>
</form>
양식을 처리하는 ASP 프로그램
word_create.asp
<% Response.ContentType = 애플리케이션/msword %>
<html>
<% strName = Request.Querystring(이름)
strEmail = Request.Querystring(이메일)
strComments = Request.Querystring(댓글)
%>
<머리>
</head>
<본문>
<p align=right><%=formatdatetime(now,2)%></p>
친애하는 <%= strname %>님:
내 이메일은 다음과 같습니다: <%= stremail %>
내 콘텐츠는 다음과 같습니다: <%= strComments %>
</body>
</html>