PDA

View Full Version : New to Dreamweaver having problems with forms


isham
08-26-2009, 04:44 PM
I am new to using Dreamweaver cs3. I am having problems getting my form page to work. I need to know how to set the values to send the form to my email. The page itself is already on the web at
http://www.crreferrals.com/Contact.html
The email I am trying to send the form to is info@crreferrals.com

The code as it stands is below. I would think this to be an easy process but it is escaping me for some reason. I am not a coder which is why I use Dreamweaver and before this Frontpage. PLEASE SOMEONE HELP.

<form action="" method="post" enctype="application/x-www-form-urlencoded" name="Contact" id="Contact" onsubmit="MM_validateForm('First Name','','R','Last Name','','R','Email','','RisEmail','Tel','','NisNu m');return document.MM_returnValue">
<p align="center"><strong>Hotel &amp; Tour Referrals</strong></p>
<p align="center"><strong>Simply check each box next to your area of interest and hit send. We will email our Hotel &amp; Tour recommendations for that area within 48 hours. Remember you must tell them that CR Referrals sent you to receive your discount and to support local charities.</strong></p>
<p align="center">
<input name="C2" value="ON" type="checkbox" />
San Jose / Central Valley
<input name="C3" value="ON" type="checkbox" />
Atenas / Grecia
<input name="C4" value="ON" type="checkbox" />
Playa Herradura
<input name="C5" value="ON" type="checkbox" />
Playa Jaco
<input name="C6" value="ON" type="checkbox" />
Playa Hermosa </p>
<p align="center">
<input name="C7" value="ON" type="checkbox" />
Playa Esterillos
<input name="C8" value="ON" type="checkbox" />
Quepos / Manuel Antonio
<input name="C9" value="ON" type="checkbox" />
Montezuma
<input name="C10" value="ON" type="checkbox" />
Monteverde
<input name="C11" value="ON" type="checkbox" />
Arenal / La Fortuna </p>
<p align="center">
<input name="C12" value="ON" type="checkbox" />
Puerto Viejo
<input name="C13" value="ON" type="checkbox" />
Sarapiqui
<input name="C14" value="ON" type="checkbox" />
Puntarenas
<input name="C15" value="ON" type="checkbox" />
San Ramon
<input name="C16" value="ON" type="checkbox" />
Tamarindo </p>
<p align="center"><strong>Real Estate Search</strong></p>
<p align="center"><strong>After you choose your area of interest, click send. We will email you within 24 hours.</strong></p>
<p align="center">
<input name="C17" value="ON" type="checkbox" />
San Jose / Central Valley
<input name="C18" value="ON" type="checkbox" />
Atenas / Grecia
<input name="C19" value="ON" type="checkbox" />
Playa Herradura
<input name="C20" value="ON" type="checkbox" />
Playa Jaco
<input name="C21" value="ON" type="checkbox" />
Playa Hermosa </p>
<p align="center">
<input name="C22" value="ON" type="checkbox" />
Playa Esterillos
<input name="C23" value="ON" type="checkbox" />
Quepos / Manuel Antonio
<input name="C24" value="ON" type="checkbox" />
Montezuma
<input name="C25" value="ON" type="checkbox" />
Monteverde
<input name="C26" value="ON" type="checkbox" />
Arenal / La Fortuna </p>
<p align="center">
<input name="C27" value="ON" type="checkbox" />
Puerto Viejo
<input name="C28" value="ON" type="checkbox" />
Sarapiqui
<input name="C29" value="ON" type="checkbox" />
Puntarenas
<input name="C30" value="ON" type="checkbox" />
San Ramon
<input name="C1" value="ON" type="checkbox" />
Tamarindo </p>
<p align="center"><strong>Comments:</strong> </p>
<p align="center">
<textarea name="Comments" rows="5" cols="42"></textarea>
</p>
<p align="left"> </p>
<table>
<tbody>
<tr>
<td align="center"><strong>*First Name</strong> </td>
<td align="center"><input size="35" maxlength="256" name="First Name" type="text" id="First Name" /></td>
</tr>
<tr>
<td align="center"><strong>*Last Name</strong> </td>
<td align="center"><input size="35" maxlength="256" name="Last Name" type="text" id="Last Name" /> </td>
</tr>
<tr>
<td align="center"><strong>* E-mail</strong> </td>
<td align="center"><input size="35" maxlength="256" name="Email" type="text" id="Email" /> </td>
</tr>
<tr>
<td align="center"><strong>Telephone </strong> </td>
<td align="center"><input size="35" maxlength="256" name="Tel" type="text" id="Tel" /> </td>
</tr>
<tr>
<td align="center"><strong>Travel Dates</strong> </td>
<td align="center"><input size="35" maxlength="256" name="Travel Dates" type="text" id="Travel Dates" /></td>
</tr>
</tbody>
</table>
<p align="center">&nbsp;</p>
<p align="center">
<label>
<input type="submit" name="button" id="button" value="Submit" />
</label>
</p>
</form>

Corrosive
08-26-2009, 04:46 PM
Where is your PHP code? Can you post that as well please?

isham
08-26-2009, 04:50 PM
well like I said I am VERY new to this. dont know about php ...

Corrosive
08-26-2009, 04:53 PM
Ah, ok...sorry...THAT new ;)

PHP is a server-side scripting language that you can include in pages to make them 'do' stuff. Your form needs to use the PHP mail() function to make it send to your e-mail. Plain HTML can open a viewers mail client (outlook, lotus notes etc) and then they have to press 'send'. Google 'PHP form to mail' and you'll find loads of stuff online.

isham
08-26-2009, 04:55 PM
Thanks for the quick response will do as directed