OK, here's an example of how you do it:
enctype="text/plain"
onSubmit="window.alert('This form is being sent by email')">
It will submit the form by email, if the browser supports it, and it will make a javascript box pop up to alert them to that fact. I never tried it, but it's in the book "HTML & XHTML: The Definitive Guide, 4th Edition" by Bill Kennedy, Chuck Musciano. I looked it up in ebook form because I have access to some ebooks with my ACM membership. Here are some of the drawbacks they mention:
"""
If you choose to use either mailto or a form-to-email facility, there are several problems you may have to deal with:
*
Your forms won't work on browsers that don't support a mailto URL as a form action.
*
Some browsers, including some early versions of Internet Explorer, do not properly place the form data into the email message body and may even open an email dialog box, confusing the user.
*
A mailto doesn't present users with a confirmation page to assure them that their form has been processed. After executing the mailto form, the user is left looking at the form, as if nothing had happened. (Use JavaScript to overcome this dilemma with an onSubmit or onClick event handler.) Section 12.3.3
*
Your data may arrive in a form that is difficult, if not impossible, to read, unless you use a readable enctype, such as text/plain.
*
You will lose whatever security protections that may have been provided by the server with the form.
"""
I assume you know how to write forms otherwise, though. If you don't, just change the form action attribute to a mailto: action and change the encoding type (enctype) attribute to text/plain in the body of your HTML. Good luck!
2006-08-09 20:07:25
·
answer #1
·
answered by anonymous 7
·
0⤊
0⤋
No such thing.
The usual way is to post the info to the web server, then the web server craft the email with the data and then send it to your email account.
The HTML form posting, cannot directly post the info to your email address. (A wrong concept)
2006-08-09 20:08:19
·
answer #2
·
answered by shin 3
·
0⤊
1⤋
i'm no longer likely to drop the code the following, besides the undeniable fact that a thanks to do it truly is -upload a key adventure to the window -at the same time as a key's pressed, upload the ascii value to an array -get rid of the array's first element if it now has 11 aspects -evaluate the ten aspects to the wanted sequence -if it matches, prepare popup
2016-11-23 18:53:26
·
answer #3
·
answered by ? 4
·
0⤊
0⤋