Create a feedback form on a WAP site

Source: Internet
Author: User
Tags comments mail
For all one person to create a Web site and then the it is perfect, the is ridiculous. It is important to
Allow the visitors of our web sites to comment in what we have developed so, we can learn from the end-
User, our mistakes and mention the overall effectiveness. We create these facilities for Web sites
So why isn't create them for our WAP sites.

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

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 DECK-->

<card id= "Maincard" >

<p align= "left" ><small><b>your feedback</b></small></p>

<p align= "Left" >please Enter your e-mail 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 this code as a file called feedback.asp. Then We must create the SendMail code. This SendMail
Code can only is used if you are have the Aspmail component installed on your Web server. It is possible to
Simply change is 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>& Lt;/p>

</card>

</wml>

Now save this 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 being the way in which the WAP input is
Recognised by the ASP code i.e. your must either use Request.Form ("Txtfrom") or Request.QueryString
("Txtfrom") and not just Request ("Txtform").


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.