Total members 11892 |It is currently Sun Sep 08, 2024 2:56 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





In this code snippet we build up a feedback form

Code:

FeedBack FORM  page 
:
<%
Response.Write " <form method=post action=feedback.asp> "&_
"<table class='t2'>"&_
"<tr><td colspan=2>Feedback Form</td></tr>"&_
"<tr><td>Name</td><td><input type=text name=firstName></td></tr>"&_
"<tr><td>Email</td><td><input type=text name=email></td></tr>"&_
"<tr><td>Address 1</td><td><input type=text name=add1></td></tr>"&_
"<tr><td>Address 2</td><td><input type=text name=add2></td></tr>"&_
"<tr><td>City</td><td><input type=text name=city></td></tr>"&_
"<tr><td>State</td><td><input type=text name=state></td></tr>"&_
"<tr><td>Country</td><td><input type=text name=country></td></tr>"&_
"<tr><td colspan=2>Details</td></tr>"&_
"<tr><td colspan=2><textarea name=t1 rows=5 cols=40></textarea></td></tr>"&_
"<tr><td colspan=2><input type=submit value=Submit></td></tr>"&_
"</table></form>"
%> 
 
Here is the page that parameters are posted to 
<%
Dim firstName,email,add1,add2,city,state,country,t1,body_text
firstName
=Request("firstName")
email=Request("email")
add1=Request("add1")
add2=Request("add2")
city=Request("city")
state=Request("state")
country=Request("country")
t1=Request("t1")

body_text="Name = "firstName "<br>"
body_text body_text "Email = "email "<br>"
body_text body_text "Address 1 = "add1 "<br>"
body_text body_text "Address 2 = "add2 "<br>"
body_text body_text "City = "city "<br>"
body_text body_text "State = "state "<br>"
body_text body_text "Country = "country "<br>"
body_text body_text "Details = "t1 "<br>"

Set emailObject=CreateObject("CDO.Message")
emailObject.Subject="Feedback email from users"
emailObject.From=email
emailObject
.To="[email protected]"
emailObject.HtmlBody=body_text
emailObject
.Send
set emailObject
=nothing


Response
.Write "Your email has been sent  "

 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : user feedback FORM ASP
 play a sound when the user enters the area- audio feedback     -  
 Feedback Form in php     -  
 FeedBack form Spam     -  
 php User Registration Form     -  
 php login form (sign-in form)     -  
 Hi ... I'm a new user     -  
 User rank images     -  
 time for which a key was kept pressed by user     -  
 User Datagram Protocol or UDP     -  
 php user registration system     -  



Topic Tags

ASP Forms






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com