在WAP网站上建立反馈表单

2016-01-29 18:02 3 1 收藏

在WAP网站上建立反馈表单,在WAP网站上建立反馈表单

【 tulaoshi.com - ASP 】

  For any one person to create a web site and then think it is perfect, is ridiculous. It is important to
allow the visitors of our web sites to comment on what we have developed so that we can learn from the end-
user, our mistakes and not to mention the overall effectiveness. We create these facilities for web sites
so why not create them for our WAP sites.

A feedback form is developed by first creating the form, in this case to capture the end-user's comments,
and second to create the SendMail code, which will be used to send the comments via e-mail to us. As
always if you have any other problems with ASP/WML then you can e-mail me at michael_wright@lineone.net.
Also if you are a company supervisor, manager or director I am always looking for work, whether it be
working remotely or on-location. Please feel free to e-mail the same address.

First we create the feedback form itself. Please remember to change the red capital letters within the
code.

<% Response.ContentType = "text/vnd.wap.wml" %<?xml version="1.0"?

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"

<wml

<!-- THIS IS THE FIRST CARD IN THE DECK --

<card id="mainCard"

<p align="left"<small<bYour Feedback</b</small</p

<p align="left"Please enter your email address <input type="text" name="txtFrom" format="*M"/

Please enter your feedback <input type="text" name="txtMessage" format="*M"/</p

<do type="accept" label="Submit!"<go href="email.asp" method="post"<postfield name="txtFrom"
value="$txtFrom"/<postfield name="txtMessage" value="$txtMessage"/</go</do

<p align="left"<small<a href="LOCATION OF YOUR MAIN WAP PAGE"Back</a</small</p

</card

</wml

Now save that code as a file called feedback.asp. Then we must create the SendMail code. This SendMail
code can only be used if you have the ASPMail component installed on your web server. It is possible to
simply change the ASP code in conjunction with your own component e.g. CDONTS.

<% Response.ContentType = "text/vnd.wap.wml" %<?xml version="1.0"?

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"

<wml

<card id="mainCard" title="Send Feedback"

<p<small<bYour Feedback</b</small</p

<%

sstrToName = "YOUR NAME"

sstrToAddr = "YOUR EMAIL ADDRESS"

Set Mailer = CreateObject("SMTPsvg.Mailer")

Mailer.RemoteHost = "SMTP MAIL SERVER"

Mailer.FromAddress = Request.Form("txtFrom")

Mailer.AddRecipient sstrToName, sstrToaddr

Mailer.Subject = "SUBJECT OF FEEDBACK EMAIL"

Mailer.BodyText = Request.Form("txtMessage")

If Mailer.SendMail Then

Response.Write "<p<smallMail has been sent...</small</p"

else

Response.Write "<p<smallMail send failure. Error was " & Mailer.Response &"</small</p"

end if

%

<p align="left"<small<a href="LOCATION OF YOUR MAIN WAP PAGE"Back to Menu</a</small</p

</card

</wml

Now save that code as a file called email.asp and you are ready to test it. I hope you found this article
helpful. One of the main

来源:https://www.tulaoshi.com/n/20160129/1504114.html

延伸阅读
标签: ASP
  1.创建一个站点文件夹 首先你要创建一个独立于你的主站点的新的站点文件夹(若站点是建立在同一个服务器上面的话),这样你下面要做的改动才不会影响别的站点。 2.在IIS 平台创建一个新的MIME类型 先选择WAP站点的属性,再加入MIME类型,然后选择HTTP Headers标签。 在MIME Map部分,点击File Type并且输入以下信...
让用户读懂你的网站是所有事情的开始,为了在狭小的手机网站上尽可能有效的传达信息,本文的图片是我用手机一张张截图的,浏览器为UCweb 7,手机为Sony Ericsson M608. 让用户读懂你的网站是所有事情的开始,为了在狭小的手机网站上尽可能有效的传达信息,我总结了这么几条. 本文的图片是我用手机一张张截图的,浏览器为UCweb 7,手机为Sony ...
标签: ASP
  HTML格式的Form表单文件FOLDER.htm的内容: <form name="form1" method="post" action="folder-action.asp" Create a folder <input type="text" name="name" <input type="submit" name="Submit" value="Submit" </form ASP文件FOLDER...
标签: Web开发
使用css来美化表单元素时,一直没有好的方法美化文件上传控件。http://www.quirksmode.org/dom/inputfile.html(网站好像出错)提供了美化文件上传控件的方法。本人在该方法的启发之下,结合自己的项目,将其功能更加完善,经过改善之后,其具有以下特点: 用户所见并不是文件上传按钮,而是一个按钮; 可以对图片的格式进行限制; 用户选择的...
PowerPoint2010链接到网站上的视频文件   要点:请确保在链接到、使用或分发受版权保护的非您创建的内容之前,已获得所有者的许可。 1、在幻灯片选项卡上的普通视图中,单击要为其添加视频的幻灯片。 2、在浏览器中,转到包含要链接到的视频的网站,例如 YouTube 或 hulu。 3、在网站上,找到该视频,然后找到并复...

经验教程

59

收藏

26
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部