HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
how do i set up submit button to email with checkboxes
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Tools
View previous topic :: View next topic  
Author Message
gagatr



Joined: 30 May 2008
Posts: 2

PostPosted: Fri May 30, 2008 1:07 pm     how do i set up submit button to email with checkboxes Reply with quote

I need to set this submit button to work. Any help to get this working will be much appreciated. I found some javascript code from another site and i'm not sure if i did it right. Also, it doesn't include how to set it up with checkboxes.

Thanks

<!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" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style10 {font-size: 17px; color: #0155AB; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
body {
background-color: #FFFFFF;
}
.style11 {color: #333333}
.style26 {color: #FFFFFF;
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
}
.style27 {font-size: 14px;
font-weight: bold;
}
.style30 {font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #FFFFFF;
}
.style32 {color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style33 {font-family: Arial, Helvetica, sans-serif}
.style35 {font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
}
.style37 {font-family: Arial, Helvetica, sans-serif;
font-style: italic;
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
}
.style38 {color: #FFFFFF}
.style39 {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; }
-->
</style>
</head>

<script language="javascript">
function SendEmail(frm){
var emailAddress="acm1984atyahoo.com"
var message = "Name:" + frm.txtName.value + "\n";
message = message +"Phone:" + frm.txtPhone.value;
message = message +"\nEmail:" + frm.txtEmail.value;
message = message +"Comments:" + frm.txtComments.value;
message = message +"Endorsement"

document.location.href = "mailto:"acm1984atyahoo.com"?subject=Test Mail&body="+escape(message);
}
</script>

<body></form>
<br />
<table width="444" height="226" bordercolor="#F0F5FA" bgcolor="#F0F5FA">
<tr>
<td width="436" colspan="2" valign="top" bordercolor="#F0F5FA" bgcolor="#F0F5FA"><label></label>
<div align="center"></div>
<table width="475" height="706" bordercolor="#F0F5FA" bgcolor="#00579F">
<tr>
<td colspan="3" valign="top" bordercolor="#F0F5FA" bgcolor="#F0F5FA"><label></label>
<div align="center"><span class="style10"><span class="style11">VOLUNTEER</span></span></div>
<p><span class="style10">Interested in helping out with Steve's campaign? <br />
If so, please fill this out.</span></p>
<p><strong><br />
<span class="style33">Yes, I would like to assist Steve in his campaign by: </span></strong></p></td>
</tr>
<tr>
<td width="2" height="24" valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style26">
<label></label>
</span></td>
<td colspan="2" rowspan="8" valign="top" bordercolor="#00579F"><span class="style26"> </span>
<form id="volunteer" name="volunteer" method="post" action="file:///Home/Users/alexmescher/Desktop/Documents/saved documents/mescherdesign/nicholweb/FormToEmail.php">
<label> <br />
<input name="endorsement" type="checkbox" id="using_my_name_in_an_endorsement" value="yes" />
</label>
<span class="style26">
<label></label>
</span><span class="style27 style33 style38">Using my name in an endorsement </span>
<p class="style26">
<label>
<input name="fundraiser" type="checkbox" id="hosting_a_fundraiser" value="yes" />
</label>
<label></label>
<span class="style27">Hosting a fundraiser</span> </p>
<p class="style26">
<label>
<input name="walking_in_my_neighborhood" type="checkbox" id="walking_in_my_neighborhood2" value="yes" />
</label>
<label></label>
<span class="style27">Walking in my neighborhood</span></p>
<p class="style26">
<label>
<input name="placing_a_sign_in_my_yard_or_business" type="checkbox" id="placing_a_sign_in_my_yard_or_business2" value="yes" />
</label>
<label></label>
<span class="style27">Placing a sign in my yard or business</span></p>
<p class="style26">
<label>
<input name="working_on_election_day" type="checkbox" id="working_on_election_day2" value="yes" />
</label>
<label></label>
<span class="style27">Working on election day</span></p>
<p class="style26">
<label>
<input name="identifying_speaking_opportunities" type="checkbox" id="identifying_speaking_opportunities2" value="yes" />
</label>
<label></label>
<span class="style27">Identifying speaking opportunities</span> </p>
<p class="style26">
<label>
<input name="hosting_a_meet_and_greet_in_my_home" type="checkbox" id="hosting_a_meet_and_greet_in_my_home2" value="yes" />
</label>
<label></label>
<span class="style27">Hosting a &quot;Meet and Greet&quot; in my home</span></p>
<table>
<tr>
<td valign="center" align="right" width="100%"><div align="left"><span class="style39"> *Name:</span></div></td>
<td width="65%"><input type="text" name="txtName" value="" /></td>
</tr>
<tr>
<td valign="center" align="right" width="100%"><div align="left"><span class="style39"> Phone:</span></div></td>
<td width="65%"><input type="text" name="txtPhone" value="" /></td>
</tr>
<tr>
<td valign="center" align="right" width="100%"><div align="left"><span class="style39"> *Email:</span></div></td>
<td width="65%"><input type="text" name="txtEmail" value="" /></td>
</tr>
<tr>
<td valign="center" align="right" width="100%"><div align="left"><span class="style39"> Additional Comments:</span></div></td>
<td width="65%"><input type="text" name="txtComments" value="" /></td>
</tr>
<tr>
<td valign="center" align="center" width="100%" colspan="2"><input type="button" name="Submit" value="Submit" onclick="Submit(this.form)" /> </td>
</tr>
</table>
</form> </td>
</tr>
<tr>
<td height="24" valign="top" bordercolor="#00579F" bgcolor="#00579F">&nbsp;</td>
</tr>
<tr>
<td valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style32">
<label></label>
</span></td>
</tr>
<tr>
<td valign="top" bordercolor="#FFFFFF" bgcolor="#00579F"><span class="style32">
<label></label>
</span></td>
</tr>
<tr>
<td valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style30">
<label></label>
</span></td>
</tr>
<tr>
<td valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style30">
<label></label>
</span></td>
</tr>
<tr>
<td valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style30">
<label></label>
</span></td>
</tr>
<tr>
<td height="169" valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style30">
<label></label>
</span></td>
</tr>
<tr>
<td colspan="3" valign="top" bordercolor="#00579F" bgcolor="#00579F"><label></label> <label></label> <label></label></td>
</tr>

<tr>
<td valign="top" bordercolor="#00579F" bgcolor="#00579F">&nbsp;</td>
<td colspan="2" valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style35">* required</span></td>
</tr>
<tr>
<td valign="top" bordercolor="#00579F" bgcolor="#00579F">&nbsp;</td>
<td colspan="2" valign="top" bordercolor="#00579F" bgcolor="#00579F"><span class="style37"><br />
If you have any other ideas about ways you can help my campaign, <br />
please call (561) 651-1499</span></td>
</tr>
</table>
<p>&nbsp;</p>
</td>
</tr>
</table>
</body>
</html>
gagatr



Joined: 30 May 2008
Posts: 2

PostPosted: Fri May 30, 2008 1:09 pm     Reply with quote

here is my link to the page

http://www.mescherdesign.com/volunteer
Thanks
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Tools All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial