homepage Welcome to WebmasterWorld Guest from 50.19.172.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
How to make a form work in an email
nort99



 
Msg#: 4176570 posted 1:16 pm on Jul 26, 2010 (gmt 0)

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

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



 
Msg#: 4176570 posted 3:38 pm on Jul 26, 2010 (gmt 0)

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

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



 
Msg#: 4176570 posted 10:51 pm on Jul 26, 2010 (gmt 0)

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



 
Msg#: 4176570 posted 12:47 am on Jul 27, 2010 (gmt 0)

I am using Post

nort99



 
Msg#: 4176570 posted 12:57 am on Jul 27, 2010 (gmt 0)

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

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



 
Msg#: 4176570 posted 7:18 am on Jul 27, 2010 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved