木子屋 Dnawo's BLOG

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

👤 dnawo 📅 2007-02-09 👁 4754 👍 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> 


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)

暂无评论。

计算题
评论需审核通过后显示
← 上一篇 ASP程序中使用断开的数据记录集 下一篇 → ASP设计常见问题及解答精要