View Full Version : help contact form

02-27-2009, 11:14 PM
hi i got a template with this code with the contact form but where i supose to put my email address to submmit when aome one hit submmit?

<table class="no_class">
<td style="width:21px;"></td>
<td style="width:241px;">
<br style="line-height:14px">
<form id="form1" action="" enctype="multipart/form-data" name="form1">
<div class="form"><input type="text" value="Your Name:"></div>
<div class="form"><input type="text" value="Telephone:"></div>
<textarea rows="40" cols="50">E-mail Address:</textarea><br>
<br style="line-height:7px">
<strong style="margin-left:87px"><a href="#" onClick="document.getElementById('form1').reset()" class="l2_text">reset</a></strong><strong style="margin-left:29px"><a href="#" onClick="document.getElementById('form1').reset()" class="l2_text">submit</a></strong>

02-28-2009, 12:38 AM
you really need to do it a tutorial to learn more about how forms work.

There are two parts to making a form work.

You have the actual HTML form (the code above) and you also have a script that processes the form once the submit button has been clicked. These scripts are commonly written in PHP but not exclusively, there's one available for download from this site I think. This is where you place your email address.

Also if you are wanting the form to send an email the HTML above needs to look something like this, see where you have the action this should be POST and it should point to the script you are going to be using. These settings can be changed via the code or via Dreamweaver's property inspector if you prefer not to use code.

<form id="contactForm" name="contactForm" method="post" action="Scripts/formProcess.php">
<fieldset class="sms">

<label for="name">
<input type="text" name="name" id="name" />

<label for="telNum">
<span>*Tel No:</span>
<input type="text" name="telNum" id="telNum" />

<label for="PostalCode">
<input type="text" name="PostalCode" id="PostalCode" />

<label for="email">
<input type="text" name="email" id="email" />

<div><input type="submit" value="Submit" /></div>

02-28-2009, 01:59 AM
yes there is one on this site in tutorials