|
|
|
multiple email addresses |
| message from david on 16 Jul 2004 |
Hi Guys,
Quick two questions,
can I use more than one email address to post a form and how would that
be formatted, i.e. do I use two mailto addresses
Also, because I am using the post method, no CGI etc. I have set my form
enctype to multipart/form-data (See code below). This creates an ATT
file which I can read with Word but the formatting is not very nice. Is
is a case of this is how good it gets unless I use proper form handling
/ scripting
<form action="mailto:you@yourbusiness.co.uk" method="post"
enctype="multipart/form-data" name="INFO_REQ"
onsubmit="MM_validateForm('Name','','R','postcode','','R');return
document.MM_returnValue">
thanks Dave
|
| Murray *TMM* replied to david on 16 Jul 2004 |
There are two basic ways to process form data -
1. Use mailto:name@domain.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 (Eudora on the Mac is a good example of one that does not).
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.).
Now - on to your questions.
Using mailto: I don't know. Using Method 2, it would be very easy to simply
include another email address in the scripting.
Change your code to this -
<form action="mailto:you@yourbusiness.co.uk" method="post"
enctype="text/plain" name="INFO_REQ"
onsubmit="MM_validateForm('Name','','R','postcode','','R');return
document.MM_returnValue">
|
|