盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

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

时间:2024/11/14作者:未知来源:盾怪网教程人气:

[摘要]先创建一个表单,随便存一个名字好了。xxx.html〈form action="word_create.asp"〉Name: 〈input type="text&quo...

先创建一个表单,随便存一个名字好了。
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的一个例子




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版