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]