HighDots Forums  

mailto problem

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss mailto problem in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
b4tv
 
Posts: n/a

Default mailto problem - 11-18-2004 , 06:53 AM






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;


Reply With Quote
  #2  
Old   
b4tv
 
Posts: n/a

Default Re: mailto problem - 11-18-2004 , 07:03 AM






Ok, sorry. Just seen yet another mailto question further down. I'll follow up that one and come back if I'm still stuck.

Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: mailto problem - 11-18-2004 , 07:04 AM



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;




Reply With Quote
  #4  
Old   
b4tv
 
Posts: n/a

Default Re: mailto problem - 11-18-2004 , 03:09 PM



At the risk of appearing really stupid I can't see the bit in the script I posted that goes <form...> to replace with the suggestion made.

Reply With Quote
  #5  
Old   
pattianne
 
Posts: n/a

Default Re: mailto problem - 11-18-2004 , 03:24 PM



<FORM METHOD='POST' ACTION='mailto:martin (AT) b4tv (DOT) co.uk' enctype='text/plain'>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.