Building a simple Questionnaire ?


Hi,

I'm looking to construct a simple Questionnaire using Dreamweaver.

Can anybody suggest how I do this?  I would like to keep it as simple as possible but would consider using ASP if beneficial?

I am more concerned how to get to the results from the questionnaire to appear in a nicely formatted email?

TIA.
andyw27Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rockmansatticCommented:
ASP will work quite well if you have CDONTS installed on the server.
PHP is also quite easy.
But this is code for asp:


<%
If Request.ServerVariables("Request_Method") = "POST" then


Dim objMail
Dim strBody

 Set objMail = Server.CreateObject("CDONTS.NewMail")

    objMail.From    = "You***************** "
    objMail.Subject = "Thank You*************** "
    objMail.To      = "you@you.com"

     firstName             = Request.form("fname")
     Lastname             = Request.form("lname")
     emailaddress                      = Request.form("emailaddress")
      

   HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
     HTML = HTML & "<html>"
     HTML = HTML & "<head>"
     HTML = HTML & "</head>"
     HTML = HTML & "<body bgcolor=""FFFFFF""><font size =""2"" face=""Arial"">"
       HTML = HTML & "Thank you" & firstName &" for completing the  Questionnaire.  Your participation in this process is very much appreciated."
       HTML = HTML & "<br>"       
       HTML = HTML & "<hr width=""200"" size=""2"" align=""left"">"
     HTML = HTML & "<p align = ""center"">This email has been auto-generated; Please do not respond.</p>"
       HTML = HTML & "</font></body>"
     HTML = HTML & "</html>"

     objMail.BodyFormat=0 '0= HTML, 1=Text
     objMail.MailFormat=0


     objMail.Body = HTML
    objMail.Send

Response.write("")

'You must always do this with CDONTS.
 set objMail = nothing


End If
%>

You should be able to alter this to your needs.
this is the second page of the process. just create a form on the first page and change the form names to sothing more descriptive. then let that form POST to this page.

Rockman
0
andyw27Author Commented:

That's great thank you.

One other question how can I get the forms feature to interact with the email.  For example if I had say 4 tick boxes how could I get the label and status of tickbox to show in the email which is returned ?

The same goes for drop down lists ?

TIA.
0
rockmansatticCommented:
same way, just add like this

this first part is the variables
                                  this second part is requesting the info that was put into the form fields

     firstName           = Request.form("fname")
     Lastname           = Request.form("lname")
     emailaddress      = Request.form("emailaddress")

     othercheckbox     =Request.form("nameofthecheckbox")

Hope this helps
0
rockmansatticCommented:
Has you question been answered?
if so, please close this question.  

thanks

rockman
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.