View Full Version : Mailto Link In Dreamweaver
03-02-2005, 12:18 PM
Hi, I'am making my own form in HTML using Dreamweaver, the question is when I click on the button I dont know where to put the Mailto HTML link can anyone give a link to a tutorial for this or tell me how to do this.
Remember, It's for Dreamweaver
problem is... mailto probably doesnt work anymore in a form. you should be using a serverside language like PHP to process any form information which will then send the info to wherever afterwards.
this setting would be your ACTION value in the FORM tag.
03-02-2005, 12:59 PM
I haven't done any forms yet in DW -and whould use code view anyway, but as pb&j already mentioned, there's probably an "action" attribute somewhere if you pull out the details view on the submit button.
At any rate: mailto actions aren't supported on every client; especially windows XP seems to need an other-than-default installation for this to work. Besides that, in this day and age it's not advisable to have your mail address as text in a page's markup: that's begging for spam attacks. Using some sort of (simple) form handler based on server side scripting would cover both of the above problems and could offer far more options for processing the submitted data.
03-02-2005, 02:42 PM
So what you guys are saying is use PhP instead of HTML to write a submit button so that it sends the form to my e-mail address.
03-02-2005, 02:51 PM
PHP, ASP, Perl, CGI... If you've got PHP available on your host's server, then yeah: I did a very basic one a while ago which was largely based on an example from WeberDev (http://www.weberdev.com/).
Re-reading your last reaction: the idea is to create a form-handling script. The form is built in HTML, and on submit the form's contents are sent to the form handler (via the action attribute). The form handler then processes the form's content to, say, create and send an e-mail to your favourite address.
This way, the mail address is hidden in the script and spammers get no chance at getting their grubby little hand on it.
03-02-2005, 03:46 PM
It's very simple to create a form for php. When i'm at home i'll upload the contact.php i use myself, so you can customize it a bit.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.