homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Email Form Submit won't work
rudyvb



 
Msg#: 4337486 posted 8:38 pm on Jul 9, 2011 (gmt 0)

Hi All!
I have seen this all over the web. I have tried the easy examples, but I still can not get email to send to my account.
Maybe it's the email?
I'm using email from GoDaddy, same place where my website is hosted.

I know my email work, because I can use the same address, and send a test email. So it has to be the code.

<form action="mailto:someemail@sometime.com""ENCTYPE="text/plain" method="POST" reqmessage="One or more required fields need to be entered. Please go back and re-enter." transition="0"/>
<input type="hidden" name="subject" value="HTMLPage1.html" />
<input type="hidden" name="redirect" value="HTMLPage1.html" />


I built this from samples that I found on the web. First HTML script in a number of years. I'm windows app developer, don't do many web sites.

Any help will be great!

Thanks!

Rudy

 

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4337486 posted 12:39 am on Jul 10, 2011 (gmt 0)

<form action="mailto:someemail@sometime.com""ENCTYPE="text/plain"

Hint: Put spaces around each = sign (you can take them out again later) and make sure there is a space between each tag (ditto). If this is not enough to make it jump up and hit you in the face, the w3c validator [validator.w3.org] is helpful because it puts the error(s) in bright red. At least it did when I pasted the full line into a doc of my own and tried it. It also screamed at an error of my own elsewhere in the code, so this was a good detour for me.

rudyvb



 
Msg#: 4337486 posted 3:20 am on Jul 10, 2011 (gmt 0)

Thanks Lucy for the tip!

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4337486 posted 4:26 pm on Jul 11, 2011 (gmt 0)

I never use these, but try changing the method to GET. You're basically emulating a mailto:link with a form, get is the default action of query strings, etc.

You do have a submit button, right? It has to be input type="submit" (or image), input type="button" has no inherent actions without client side scripting to attach actions to them.

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