Click to See Complete Forum and Search --> : Dreamweaver Form not working


Dumbblonde
11-09-2006, 06:36 PM
I have very little experience, but have managed to build a pretty decent intranet for our company. The problem I'm having is trying to get this form to email correctly. When I hit the send button it goes to the correct email, but there is nothing attached or printed in the email. All the info is gone.

Please help.

<!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>

<title>Leave Request Form</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
}
body,td,th {
font-family: Georgia, Times New Roman, Times, serif;
font-size: 12px;
}
h1,h2,h3,h4,h5,h6 {
font-family: Georgia, Times New Roman, Times, serif;
font-weight: bold;
}
h1 {
font-size: 18px;
}
.style5 {font-size: xx-large}
.style6 {
font-size: 16px;
font-style: italic;
font-weight: bold;
}
.style7 {
font-size: 14;
font-weight: bold;
}
.style8 {
font-size: 14px;
font-weight: bold;
}
.style9 {font-size: 14px}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
</head>
<body class="sub">
<form action="mailto:kraemer@sahara1.com" method="get" enctype="text/plain" name="form1" id="form1" onsubmit="MM_callJS('Attachmyform')">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td style="vertical-align: top" width="21%" class="HeaderColor"> <h3 align="left" class="style1"><img src="Pictures/Sahara Small Logo2.jpg" width="138" height="71" alt="logo" /></h3> </td>
<td colspan="2" valign="bottom" class="HeaderColor" style="vertical-align: top"><div align="center">
<h1 class="style5">Leave Request Form</h1>
<p class="style6">(Must be approved by supervisor and turned into HR in advance) </p>
</div></td>
</tr>
<tr>
<td colspan="2" class="StoryContentColor" style="vertical-align: top">
<table width="110%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="51%" style="text-align: right; vertical-align: top"><label for="to" class="TitleColor"></label>
<div align="left"><span class="style7">Name:
<input id="to" name="to" type="text" size="50" />
</span> </div></td>
<td width="49%" style="text-align: right; vertical-align: top"><span class="style7">
Date:
<input id="to2" name="to2" type="text" size="50" />
</span></td>
</tr>
<tr>
<td style="text-align: right; vertical-align: top"><label for="cc" class="TitleColor"></label> </td>
<td style="text-align: right; vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="text-align: right; vertical-align: top"><label for="bcc" class="TitleColor"></label>
<div align="left"><span class="style8">Dates Requested:</span>
<input name="Dates Requested" type="text" id="bcc" size="50" />
</div> </td>
</tr>
<tr>
<td colspan="2" style="text-align: right; vertical-align: top"><div align="left"><span class="style8">Total Number of Hours Requested</span>:
<input name="Total Number of Hours Requested" type="text" id="from" size="50" />
</div>
<label for="from" class="TitleColor"></label></td>
</tr>
<tr>
<td colspan="2" style="text-align: right; vertical-align: top"><label for="Type of Leave Requested" class="TitleColor"></label>
<div align="left" class="style8">Type of Leave Requested: </div></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top"><span class="style7">
<label>
<input type="checkbox" name="checkbox" value="checkbox" />
Paid Time Off (PTO)</label>
</span></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top"><span class="style7">
<label>
<input type="checkbox" name="checkbox2" value="checkbox" />
Leave Without Pay</label>
</span></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td style="vertical-align: top"><span class="style7">
<label>
<input type="checkbox" name="checkbox3" value="checkbox" />
Bereavement Leave</label>
</span></td>
<td valign="bottom" style="vertical-align: top"><span class="style8">Relationship:
<input id="from2" name="from2" type="text" size="50" />
</span></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top"><span class="style7">
<label>
<input type="checkbox" name="checkbox4" value="checkbox" />
Other</label>
</span></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top"><strong><span class="style9">Remaining Personal Hours:
<label>
<input type="text" name="textfield" />
</label>
(Completed by Payroll) </span></strong></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top"><label for="message" class="TitleColor"><span class="style9"><strong>Administrative Services: </strong></span>
<input id="from3" name="from3" type="text" size="50" />
<br />
<br />
<br />
<br />
</label> <label></label></td>
</tr>
<tr>
<td style="vertical-align: top">&nbsp;</td>
<td style="vertical-align: top"><strong>Approved By: </strong></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td style="vertical-align: top">&nbsp;</td>
<td style="vertical-align: top"><strong>Supervisor:
<input id="from4" name="from4" type="text" size="50" />
</strong></td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top">&nbsp;</td>
</tr>
<tr>
<td style="vertical-align: top">&nbsp;</td>
<td style="vertical-align: top"><strong>Department:
</strong>
<input id="from5" name="from5" type="text" size="50" /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="Send" /> </td>
</tr>
</table>
<h4>&nbsp;</h4> </td>
</tr>
<tr>
<td style="vertical-align: top">
<hr width="90%" size="1" noshade="noshade" /> </td>
</tr>
</table>
</form>
</body>
</html>

HomerJSimpson
11-09-2006, 07:12 PM
html can't do this...i could be wrong..


something like this you should try to using php