There are two basic ways to process form data -
1. Use mailto:name (AT) domain (DOT) com as the action of the form
2. Use a server-side scripting method to a) harvest the form's data, b)
process it in some manner, e.g., enter it into a database, c) formulate and
send an email to one or more email recipients, and d) redirect the visitor
to some ending page
Method 1 is quite simple, and is also the least reliable. It depends both
on your visitor having an email client already installed on their computer -
this eliminates public computers - and on that email client responding to
the mailto call. It is not possible to use this method *and* send the
visitor to a
thank you page as well.
Method 2 is the preferred method, since it eliminates the problems of method
1, but it means that you have to grapple with server-scripting somehow (ASP,
CF, PHP, perl, etc.).
In your case, you are using method 1, and your email gateway is transforming
the form's data into an unformatted mess. You can prevent that by changing
this -
<form...>
to this -
<form enctype="text/plain" ...>
But you really should use method #2.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"b4tv" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
I have searched the forum but have been unable to find a solution to the
following: I have a very simple form on my html site to get some info for
visitors. Here is the code
FORM METHOD="POST"
ACTION="mailto:martin (AT) b4tv (DOT) co.uk"
Your Paypal e-mail address: <INPUT NAME="email"><p
Your name: <INPUT NAME="yourname"><p
Your domain name: <INPUT NAME="domain"><p
INPUT TYPE="submit" value="Submit details"
/FORM
This sends an email but it arrives as an attached document with an ATT
suffix
which I cannot simply open to read the info contained within. I would
like to
modify the code to do several things, in this order of importance
1. Send the info in such a way that I can read it.
2. Clear the contents of the form after submission.
I have looked at various cgi options but am still holding out for a
simple,
newbie-friendly', option.
Any ideas?:confused; |