|
 |
javascript thread: E-Mail Form Results
Message #1 by "Nick Maffei" <nmaffei@a...> on Mon, 22 Jul 2002 12:09:21 -0400
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C2325D.8DE46CA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
After much trial and error coding, the following line of code works
fine:
<FORM METhOD=3DPOST NAME=3D"Comments"
ACTION=3Dmailto:nmaffei@a... enctype=3D"text/plain"
onsubmit=3D"return checkform(Comments)">
The contents of the comments in the text box are sent to the specified
E-mail address.Works fine for bith Netscape and IE.
If anyone sees any pitfalls with its use, please let me know.
Nick Maffei
----- Original Message -----
From: Greg Griffiths
To: javascript
Sent: Monday, July 22, 2002 3:45 PM
Subject: [javascript] Re: E-Mail Form Results
It appears because IE has no inbuilt mail program - unlike Netscape
Communicator - so you get this screen. You ae probably better off using
one of the free server side form handler scripts which will email you as
well.
At 12:09 22/07/02 -0400, you wrote:
I created a form which contains a space for a user to add comments
or questions.
It is simple code.
<FORM Name=3D"Comments" ACTION=3Dmailto:nmaffei@a...
enctype=3D"text/plain" onsubmit=3D"return checkform( Comments )">
checkform simply creates a "thank you" alert.
When the user clicks the "submit" button, the alert appears as
planned, but the next screen that pops up is Outlok Express.
The E-mail address appears in the header of Outlook Express.
Why does Outlook Express pop up, and why are the form contents not
sent directly to the impedded address.
Monday mystery
Nick Maffei
--- Improve your web design skills with these new books from
Glasshaus. Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp
or
--- Improve your web design skills with these new books from
Glasshaus. Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp
or
|
|
 |