
How do I use mailto: links in a form?I'm writing a webpage registration program for a local non-profit, and I've been trying action="mailto:myaddr@yahoo.com" thinking that it would send me the stuff that my CGI script will get (method is POST) but I don't see anything. Is there a way to see what my cgi script will see w/o having to do the server side stuff first? First off, as far as I can tell, the "method" is ignored when you use a mailto: link, but there's a bigger problem: mailto: links only work when the user's Web browser is configured to have a default email program helper. This means that if you choose to use this method of getting data from a form, some percentage of your users won't be able to communicate with you at all (including your own setup, from what you say). Further, since there's no CGI script involved, it's impossible to hide any data elements from users and worst of all, the data from the form arrives in the email message from the users as a single, encoded data field. Instead of a nice series of name=value pairs that's easy to read and understand, all punctuation characters are turned into their hex ascii equivalent values, all spaces are changed into "+" symbols, and so on. And another problem, since I'm going down the list: spammers that crawl your site will be able to extract the email address and add it to their databases, meaning that you'll get even more spam than you already receive. If you have the ability to run a CGI script on the server, it's really a much smarter strategy to either find and download a security mail to web script, ask your web hosting company if they have a preconfigured script you can use, or even write one yourself. And tuck your email address into the script itself so that it's not part of the form. I hope that helps you out!
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.
Categorized:
HTML and CSS
(Article 4177)
Tagged: Previous: Can I tweak my blogger templates to add true permalinks? Next: How do I figure out how much AdWords charges for specific keywords? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.
Rather amazingly, there are no comments on this article yet.
I have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|