?
Solved

Modifying Forms in HTML Email

Posted on 2003-12-01
7
Medium Priority
?
423 Views
Last Modified: 2010-04-06
Hey, I'm trying to figure out whether it is possible to respond to an HTML form sent in an email.  I'm using a php script to send an email with some dropdown lists and text boxes.  I receive the email OK in Outlook Express, with the form elements displayed correctly.  Ideally, I'd like for a user to be able to modify a received form and hit the Reply button, which will send the form with all the user's changes and input back to our server for processing.

Is it even possible to send back a modified form via Reply?  In my tests, hitting Reply or Forward quotes the original form sent, and does not reflect changes the user may have made.  Is there a better way to have a user submit data filled out in an email form?

Any help would be appreciated!  Thanks.

0
Comment
Question by:DeathCheese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 31

Expert Comment

by:seanpowell
ID: 9853470
Can't be done successfully, as most email clients will strip out the script required to process the form. The tried and true method is still the best - host the form on your site :-)
0
 
LVL 1

Assisted Solution

by:kellysgreen
kellysgreen earned 186 total points
ID: 9854267
Actually, I think you can do what you are asking. but let me see if I understand you correctly...

1) User1 fills out form on website, clicks submit.

2) form results are sent to Admin1 via email

3) Admin1 edits results, and submits them back to website.

To accomplish this, you should be able to format the initial email that Admin1 gets as HTML with a prope <form> </form> area, setting the action= value to the full URL to form parsing CGI on your webserver.  Sounds like that is the only thing you are missing...  then instead of Admin1 REPLYING to the email, they can just click the SUBMIT button embedded in the HTML form inside of the email.

ie:
<form action="http://mysite/formhandler.cgi">
<input name="Test" value="">
<input type="submit">
</form>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9858298
It appears that it's this:

1) User fills out form in "email client" and clicks submit.

2) form results are sent to server for processing via email

The problem is #1. You can't do this within an email...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:kellysgreen
ID: 9858603
I dunno... it works great for me using either Mozilla or Outlook 2000 as my email client...
I just created an HTML formatted email which contains an HTML form, filled out the form & submitted the results to the web server (not a local web server either) without incident.  
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 189 total points
ID: 9858642
It's because of the way your email client is set up. The latest security patches generally disable this type of scripting, so there's no way to know whether a user will be able to do this. It can be done - but it's not 100%. Indeed, it may only be 10%. Given that, the best way is to host the form on your site.

There are a number of ways to embed a form in an email that can do a "great" deal of damage - which is why the security has been tightened up :-)
0
 
LVL 1

Expert Comment

by:kellysgreen
ID: 9858779
True, but I'm running Mozilla 1.5 and a fully patched Outlook 2000.  
Also --- one can reasonably inuit that the person who is receiving these HTML forms via email is a known entity and that their email client can be configured or modified as need be to allow for this.
0
 

Author Comment

by:DeathCheese
ID: 9858970
The original idea is something like this:

1) User receives form in email.  Modifies it in email client.

2) User hits reply, and the results of the form are sent via email to my server.

Using an email client's standard "Reply" button to submit the data...in theory.  I wasn't sure if that was possible, and I'm leaning towards not possible now.  The other option, adding a submit button to the email form, seems more realistic.  I've got a simple form submitting from some test emails.  Though I understand that not all email clients may be able to handle the submit action.  It does certainly seem like a vulnerability.

Thanks for all your responses.
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

764 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