DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP (http://www.daniweb.com/forums/forum62.html)
-   -   Building asp form (http://www.daniweb.com/forums/thread171042.html)

enoch365 Jan 24th, 2009 3:10 pm
Re: asp form problem
 
Hi I am just a student doing survey
about Employers helping empolyees
with their housing during this recession
and I need helps to make this ASP form....


anyone willing & able to help me out?
===========================================
My -survey.html- File for getting the info
===========================================
<html><head><title>Survey</title></head>
<body><form method=post action="sProcess.asp">
<pre><input type="radio" name="Status" value="HR Manager">I am an HR Manager
<input type="radio" name="Status" value="Untitled Hiring Manager">I am an Untitled Hiring Manager 

FIRST name <input type="text" 1stname="name" size="20" name="FirstName">

<textarea name="SayAnyThing" rows=5 cols=40 wrap></textarea>
<input type="submit" value="submit my survey"><input type="reset" value="Start Over"></pre>
</form></body>
</html>
====================================================================
my -- sProcess.asp- file for processing & sending my survey
====================================================================
<html><head><title>sprocess</title></head>
<body>
<%
'=== BEGIN send survey
Set ObjMsg = Server.CreateObject("CDONTS.NewMail")
ObjMsg.From = "WebMaster@JeanBiz.info"
ObjMsg.To = "ComfortedAlways@aol.com"

  ObjMsg.Subject = "Survey"
  ObjMsg.Body = "Survey"&vbCrlf&_
  "==========================================="&vbCrlf&_
  "status                      = " &rtrim(Request.Form("Status""))"&vbCrlf&_
  "first name                  = " &rtrim(Request.Form("FirstName""))"&vbCrlf&_
  "say any thing              = " &rtrim(Request.Form("SayAnyThing""))

  ObjMsg.Importance = 1
  ObjMsg.Send
  Set ObjMsg = Nothing
'=== END send survey
Response.Write "Thanks for answering this survey<br>"&_
%>
</body>
</html>


All times are GMT -4. The time now is 8:50 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC