Solved

Php E-mail Based Survey

Posted on 2003-11-11
2
218 Views
Last Modified: 2006-11-17
Hi,
  I am trying to make a survey to send out to customers. I already have a Web-Based one, however, I would like to send an e-mail containing the questions on the survey that will get entered into my database. I believe I have to create and attach an html form that will then connect to the database once the survey is submitted. If anyone has any better ideas could you please let me know.

Thanks,

MSP
0
Comment
Question by:Zambian4eva
2 Comments
 
LVL 13

Accepted Solution

by:
lozloz earned 500 total points
ID: 9725231
you don't need to attach an html form unless the user can only accept plain text e-mails. you can actually write out your email using html tags, have the form action pointed at a processing script which you have stored on your server. so you'd have something like:

$message ="<form method=\"POST\" action=\"process-survey.php\">
<input type=\"radio\" name=\"quality\" value=\"1\" selected>good or <input type=\"radio\" name=\"quality\" value=\"0\">bad?
<input type=\"submit\" name=\"submit\" value=\"Send survey\">
</form>";

any questions, ask away

loz
0
 
LVL 1

Expert Comment

by:dstark
ID: 9736465
make sure you include a URL in the action from lozloz's script.. otherwise, it's gonna cause some issues ;)

ie: action=\"http://www.yourwebsite.com/process-survey.php\"
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now