麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 開發設計 > 正文

在WAP網站上建立反饋表單

2019-11-18 22:15:02
字體:
來源:轉載
供稿:網友
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 [email protected].
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><b>Your 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><b>Your 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><small>Mail has been sent...</small></p>"

else

Response.Write "<p><small>Mail 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 problems I had when creating this code was the way in which the WAP input is
recognised by the ASP code i.e. You must either use Request.Form("txtFrom") or Request.QueryString
("txtFrom") and not just Request("txtForm").



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 久久亚洲精品久久国产一区二区 | 深夜小视频在线观看 | 巨乳毛片| 最新午夜综合福利视频 | 午夜视频在线 | 亚洲第五色综合网 | 欧美成人精品一区二区男人小说 | 成人情欲视频在线看免费 | h网站在线观看 | 国产又白又嫩又紧又爽18p | 91 免费看片| 国产九色在线观看 | 国产在线区 | 九九久久视频 | 午夜视频在线观看免费视频 | 亚洲国产色婷婷 | 精品国产一区二区三区久久久蜜月 | 日本68xxxx| 国产精品久久久av | 亚洲乱码精品久久久久 | 在线成人免费av | 欧美日韩亚洲成人 | av在线网站观看 | 8x成人在线电影 | free国产hd老熟bbw | av播放在线 | 看免费的毛片 | 欧美性受ⅹ╳╳╳黑人a性爽 | 国产精品久久久久久久午夜片 | 中国黄色一级生活片 | 羞羞视频在线免费 | 91在线精品亚洲一区二区 | 日本高清在线免费 | 91精品国产网站 | 中文字幕国 | 九九热在线视频免费观看 | 久久华人 | 久久人人爽人人爽人人片av高请 | 中文欧美日韩 | 精品国产一区二区三区在线观看 | 视频二区国产 |