docform.htm
<form action="doccreate.asp">
姓名: <input type="text" name="Name" size="50" maxlength="100">
电子邮件: <input type="text" name="Email" size="50" maxlength="100">
<p>内容:<textarea cols="50" rows="10" name="comments"></textarea>
<input type="submit" value="提交"> <p>
</form>
doccreate.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>
<%= strname %>:
我的电子邮件是: <%= stremail %>
内容是: <%= strComments %>
</body></html>
[1]