I am having trouble building a contact form. Below is a link to how it appears online as well as an image of how it appears in a publish preview on dreamweaver. I also listed the html code as it appears on the page in dreamweaver. If anyone can give me guidance on this issue and how I can correct it I'd greatly appreciate it.
Thanks,
Michael
html coding
<form action="mailto:onlinesubscription@newyorkcompanion.com" method="get" enctype="text/plain" name="Email Subscription">
<table width="475" border="0" cellpadding="3">
<tr align="right">
<td width="188">Full Name:</td>
<td><label>
<input type="text" name="name" id="name" maxlenght="50" size="50"/>
</label></td>
</tr>
<tr align="right">
<td>Zip Code:</td>
<td><label>
<input type="text" name="zipCode" id="zipCode" maxlenght="50" size="50" />
</label></td>
</tr>
<tr align="right">
<td>Pet Owner? (Y/N):</td>
<td><label>
<input type="text" name="petowner" id="petowner" maxlenght="50" size="50" />
</label></td>
</tr>
<tr align="right">
<td>Pet Type:</td>
<td><label>
<input type="text" name="pettype" id="pettype" maxlenght="50" size="50" />
</label></td>
</tr>
<tr align="right">
<td>Email:</td>
<td><label>
<input type="text" name="email" id="email" maxlenght="50" size="50" />
</label></td>
</tr>
<tr align="right">
<td>Comments:</td>
<td><label>
<textarea name="comments" cols="38" rows="5"></textarea>
</label></td>
</tr>
<tr align="left">
<td></td>
<td><input name="Submit" type="button" value="Submit" />
<input type="hidden" name="parse_var" id="parse_var" value="contactform"/>
<label>
<input type="submit" name="Reset" id="Reset" value="Reset" />
</label></td>
</tr>
</table>
</form>
Weppage View
http://www.newyorkcompanion.com/sbpgs/about.php
Dreamweaver Preview View
There is something seriously wrong with your page. All I see is this:
Parse error: syntax error, unexpected '[', expecting ']' in /home/content/33/8989133/html/newyorkcompanion.com/sbpgs/about.php on line 2
Are you using some CMs package to build your site? If so then they should have good form builder plugin to make your life easier.
Hope this helps you to do your own research further.
North America
Europe, Middle East and Africa
Asia Pacific