Form Mail
Posted by: tbanucci
Posted on: 2008-11-16 23:25:00
I have a couple of domains, and have just rebuilt another site for one of them. In most of my sites, i am using the form mail function. In fact, for my new site redesign, I pulled the same form mail code from a working site to the new one. However, the new site form does not send any email!
Here is the code for both sites (exactly the same):
<form id ="form1" action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST">
<input type="hidden" name="recipient" value="contact">
<input type="hidden" name="redirect" value="http://www.lastcuthomes.com/thankyou.html">
<input type=hidden name="subject" value="LastCutHomes.com Contact Form">
<input type=hidden name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">
<table class="auto">
<tr>
<td style="padding-left:1px;">
<input class="input1" type="text" value="Full Name" name="realname" onFocus="if (this.value == this.defaultValue) { this.value = ''; }">
<input class="input1" type="text" value="E-mail Address" name="email" onFocus="if (this.value == this.defaultValue) { this.value = ''; }">
<input class="input1" type="text" value="Phone Number" name="phone" onFocus="if (this.value == this.defaultValue) { this.value = ''; }">
<textarea cols="20" rows="10" name="message" type="text" onFocus="if (this.value == this.defaultValue) { this.value = ''; }">Enter Your Message.</textarea></div>
</td>
</tr>
</table>
<div style="text-align:right; padding-top:27px;">
<a class="link1" href="#" onClick="document.getElementById('form1').submit()">send</a></div>
</form>
Can anyone help me understand why one site is working and the other is not when the form is submitted?