Hi I am creating my first webpage using DreamWeaver CS5.5. I am trying to work on a contact me page and I want the submit button to automatically send me an email with the information provided in the form. I have found a lot of stuff on the internet on how to go about doing this, but I cannot seem to make it work. If you could please provide with me with all the code that is needed to do this I would greatly appreciate it, since I do not know much about code.Thank you for your help in advance.
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon"
type="image/png"
href="favicon (1).ico" />
<title>Thomas Richard Rankin Jr | Contact</title>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body background="bg.jpg" onLoad="MM_preloadImages('homebtnpush.png','aboutbtnpush.png', 'contactbtnpush.png' 'resumebtnpush.png','submitbtnpush.png')">
<table align="center" width="75%" border="0">
<tr>
<td>
<h1 align="center">
<font color="#004000">T</font>
<font color="#005000">h</font>
<font color="#006000">o</font>
<font color="#007000">m</font>
<font color="#008000">a</font>
<font color="#009000">s</font>
<font color="#00A000"> </font>
<font color="#00A000">R</font>
<font color="#00B000">i</font>
<font color="#00C000">c</font>
<font color="#00D000">h</font>
<font color="#00E000">a</font>
<font color="#00D000">r</font>
<font color="#00C000">d</font>
<font color="#00A000"> </font>
<font color="#00B000">R</font>
<font color="#009000">a</font>
<font color="#008000">n</font>
<font color="#007000">k</font>
<font color="#006000">i</font>
<font color="#005000">n</font>
<font color="#00A000"> </font>
<font color="#005000">J</font>
<font color="#004000">r</font>
</h1 align=center>
<hr width="100%" />
<center><p><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseDown="MM_swapImage('homebtn','','homebtnpush.png',1)"><img src="homebtn.png" alt="Home" name="homebtn" width="161" height="38" border="0"></a><a href="about.html" onMousOut="MM_swapImgRestore()" onMouseDown="MM_swapImg('aboutbtn','','aboutbtnpush.png',1)"><img src="aboutbtn.png" alt="About Me" name="aboutmebtn" width="161" height="38" border="0"></a><img src="contactbtnpush.png" alt="Contact" name="contactbtn" width="161" height="38" border="0" /></a><a href="Thomas Rankin Jr Resume.pdf" onMouseOut="MM_swapImgRestore()" onMouseDown="MM_swapImage('Resume','','resumebtnpush.png',1)"><img src="resumebtn.png" alt="Resume" name="Resume" width="161" height="38" border="0"></a></p>
</center>
<hr width="100%" />
<p align="center"><font color="#FFFFFF"><font face="Agency FB"><font size="+5">P</font><font size="+2">lease fill out the form below to contact me.</font></font></font></p align="center">
<form action="sendresults.php" method="post" name="Contact form"><table border="0" align="center">
<tr>
<td width="90"><font color="#666666" face="Agency FB" size="+2">First Name: </font></td>
<td width="359"><input name="firstName" type="text" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><font color="#666666" face="Agency FB" size="+2">Last Name: </font></td>
<td><input name="lastName" type="text" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><font color="#666666" face="Agency FB" size="+2">E-mail Address: </font></td>
<td><input name="email" type="text" size="30" maxlength="50" /></td>
</tr>
<tr>
<td><font color="#666666" face="Agency FB" size="+2">Comment: </font></td>
<td><textarea name="comment" cols="50" rows="10"></textarea></td>
</tr>
<tr>
<td><p> </p><a href="confirm.html" onMouseOut="MM_swapImgRestore()" onMouseDown="MM_swapImage('submitbtn','','submitbtnpush.png',1)"><img src="submitbtn.png" alt="Submit" name="submitbtn" width="161" height="38" border="0"></a></td>
</tr>
</table>
</form>
</tr>
</table>
</body>
</html>