schack8888
风云使者
风云使者
  • 注册日期2010-12-06
  • 发帖数686
  • QQ
  • 火币3641枚
  • 粉丝161
  • 关注102
阅读:3286回复:0

通过表单创建word的一个例子

楼主#
更多 发布于:2011-08-10 10:21
先创建一个表单,随便存一个名字好了。
xxx.html
<form action="word_create.asp">
Name: <input type="text" name="Name" size="50" maxlength="100">
Email: <input type="text" name="Email" size="50" maxlength="100">
Comments:
<textarea cols="50" rows="10" name="comments"></textarea>
<input type="submit" value="Submit">
</form>
处理表单的ASP程序
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>
亲爱的 <%= strname %>:
我的EMAIL是: <%= stremail %>
我的内容是: <%= strComments %>
</body>
</html>


喜欢0 评分0
兼职版主
游客

返回顶部