Solved

Php E-mail Based Survey

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

746 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

11 Experts available now in Live!

Get 1:1 Help Now