Solved

Php E-mail Based Survey

Posted on 2003-11-11
2
223 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
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…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

10 Experts available now in Live!

Get 1:1 Help Now