Welcome to WebmasterWorld Guest from 54.226.246.160

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to make a form work in an email

     

nort99

1:16 pm on Jul 26, 2010 (gmt 0)

5+ Year Member



Hello, I nedd a little help.
I want to send my form by email and have the person on the other end just fill in the blanks and hit submit button. My form works on the web page just fine and sends me the results like I want. But when I put the form in an email it does not sent the results to me. Is there a way to make this happen? Thanks.

tedster

3:38 pm on Jul 26, 2010 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hello nort99, and welcome to the forums.

The problem comes from the wide variety of email clients out there. Many of them distrust forms because of the potential for abuse. So many email clients either do not allow the form's "action" to work at all, or they pop up a scary warning message. While it seems like sending a form in an email would be a good idea, it turns out not to be very practical.

It's a much better approach, in my opinion, to offer a link to a web page and serve the form there. I know it's an extra step for the user, but at least you can make sure the form works on your website - you cannot control how an email client will treat it.

With all the phishing scams and other exploits out there, I think the trend is going in the opposite direction from what you would like, and that's done to protect the end user.

kaled

10:51 pm on Jul 26, 2010 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



How do you plan to submit the data, via email, using GET (i.e. passing data via an url) or POST (i.e. invisible)?

My guess is that you might succeed via GET but I have my doubts about other methods. Also, I imagine you'll need to avoid javascript.

Kaled.

nort99

12:47 am on Jul 27, 2010 (gmt 0)

5+ Year Member



I am using Post

nort99

12:57 am on Jul 27, 2010 (gmt 0)

5+ Year Member



I just change it to GET and gave it a try in an email and it does the same as post. This is the error I get with this php. "You must enable referrer logging to use the form" It is enable and works just fine on the web page. But not in an email. I am still looking.

kaled

7:18 am on Jul 27, 2010 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You cannot rely on email clients sending referrer data therefore you cannot use a form-processor script that requires that referrer data.

You have two choices, abandon trying to embed a form into an email or change/adjust the form-processor script.

Kaled.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month