首页 > Web开发 > 详细

asp编程实例:通过表单创建word的一个例子

时间:2014-11-20 16:58:15      阅读:210      评论:0      收藏:0      [点我收藏+]

  先创建一个表单,随便存一个名字好了。例如:上海治疗阳痿医院

  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〉

asp编程实例:通过表单创建word的一个例子

原文:http://www.cnblogs.com/chaorenman/p/4110873.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!