Hello, I'm trying to finish my fitness website, but my form isn't working right. When I click Submit button it opens my email with all the answers written in it. I need it to email it automatically and then open thankyou.html page. I'm working on a Mac with Dreamweaver CS4. Please help me. Here is my code:
<form action="mailto:info@spintopdesigns.com?subject=Evaluation" method="post" enctype="multipart/form-data" name="Evaluation" id="Evaluation">
<table width="594" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="57">Name:</td>
<td width="170"><input type="text" name="Name" id="Name" /></td>
<td width="93"></td>
<td width="104">Last Name:</td>
<td width="170"><input type="text" name="Lastname" id="Lastname" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="Email" id="Email" /></td>
<td> </td>
<td>Phone:</td>
<td><input type="text" name="Phone" id="Phone" /></td>
</tr>
<tr>
<td colspan="5">What would you like to do?</td>
</tr>
<tr>
<td colspan="5"><select name="Goals" id="Goals">
<option value="Lose weight" selected="selected">Lose weight</option>
<option value="Get toned">Get toned</option>
<option value="Gain muscle">Gain muscle</option>
<option value="Increase energy">Increase energy</option>
<option value="Improve performance">Improve performance</option>
<option value="Other...">Other...</option>
</select></td>
</tr>
<tr>
<td colspan="5">What is your weight?</td>
</tr>
<tr>
<td colspan="5"><select name="weight" id="weight">
<option value="50-100 pounds" selected="selected">50-100 pounds</option>
<option value="100-150 pounds">100-150 pounds</option>
<option value="150-200 punds">150-200 punds</option>
<option value="200-250 pounds">200-250 pounds</option>
<option value="250-300 pounds">250-300 pounds</option>
<option value="More than 300 punds">More than 300 punds</option>
</select></td>
</tr>
<tr>
<td colspan="5">How old are you?</td>
</tr>
<tr>
<td colspan="5"><select name="age" id="age">
<option value="16-21" selected="selected">16-21</option>
<option value="22-30">22-30</option>
<option value="31-40">31-40</option>
<option value="41-50">41-50</option>
<option value="More than 50">More than 50</option>
</select></td>
</tr>
<tr>
<td colspan="5">Have you ever worked out with personal trainer?</td>
</tr>
<tr>
<td colspan="5"><p>
<select name="trainer" id="trainer">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
<br />
</p></td>
</tr>
<tr>
<td colspan="5">Comments:</td>
</tr>
<tr>
<td colspan="5"><textarea name="comments" id="comments" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="2"></td>
<td colspan="2"><input type="submit" name="SUBMIT" id="SUBMIT" value="Submit" /></td>
</tr>
</table>
</form>
Configuration: Mac OS X Safari 523.12.2
Hi,
|
You can get help here about building a website:
|