?
Solved

Dreamweaver Email Submit Button

Posted on 2008-02-08
4
Medium Priority
?
6,146 Views
Last Modified: 2010-02-04
I created a website using a template. I am editing it using dreamweaver CS3.

On the Contact Us page there is a section where the user can input their email address and message. There is a submit button next to the message box. How do I setup this submit button to send to my email address.

Thanks,
0
Comment
Question by:zyanj
4 Comments
 
LVL 8

Expert Comment

by:ilovemykeyki
ID: 20851895
Assuming your using windows to setup and send an email, please read the following link in a step-by-step process.

Cheers!

http://www.webthang.co.uk/Tuts/tuts_dmx/dmxf_5/dmx5_5.asp
0
 
LVL 16

Expert Comment

by:rbudj
ID: 20851925
You have to have a script to process the form variables.  If your host supports PHP you can follow the example below.  Just create a new php page called something like mail.php.  Make your form action="mail.php" and put the following code in the mail.php page.  You will modify the variables with the NAME of your <input> boxes.
<?php
 
 
 
$recipient = "YourEmail@Address.com";
$subject = "Mailing List Request";
 
$FirstName = $_POST['FirstName']; // where FirstName is the NAME of your <input> field.
$LastName = $_POST['LastName'];
$emailAddress = $_POST['emailAddress'];
 
 
$msg = "FirstName: $FirstName\n";
$msg .= "LastName: $LastName\n";
$msg .= "emailAddress: $emailAddress;
 
 
 
mail("$recipient", "$subject", "$msg", "From: YourEmail@Address.com");
 
?>

Open in new window

0
 
LVL 25

Expert Comment

by:Rouchie
ID: 20852495
Just to take things back a level and to clarify rbudj's post, you need a server-side scripting language to process and send form data.  The template will be designed to look okay on screen but will not have the processing functionality built-in.  Both experts above have provided examples for different server-side languages, and your choice is one of many - ASP, PHP, ASP.NET etc etc.
Either way, you'll have to check with your server hosting company to see which (if any) scripting language is set up to run.

You can see how the template designer did a bit of visual trickery there with their design... ;-)
0
 

Accepted Solution

by:
zyanj earned 0 total points
ID: 21172784
none of these work I have decided to just use a hyperlink
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question