Website Template - CONTACT FORM (php) gets error

JoseJ01

New Member
Messages
7
Reaction score
0
Points
0
Here is the source code of this form to see if anyone can find out what's the problem. (I left the Javascript code as well)

SITE: http://jajcs.biz
Direct Link: http://www.jajcs.biz/index.php?p=1_2_Contact

Nothing has been altered from original PHP website template.


<script language="JavaScript" type="text/javascript"><!--
function check(){
var str1 = document.getElementById("contact_email").value;
var filter=/^(.+)@(.+).(.+)$/i
if (!( filter.test( str1 ))){alert("Incorrect email address!");return false;}}

--></script>
<div id="ContactForm"><form action="index.php?p=1_2_Contact#s" method="post" name="ContactForm" onSubmit="return check()"><table border="0" cellpadding="2" cellspacing="0"><tr id="ct1">
<td class="formLeftTd">Full Name: </td>
<td class="formRightTd"><input type="text" value="" name="contact_name" id="contact_name" ></td>
</tr>
<tr id="ct1b">
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
</tr><tr id="ct2">
<td class="formLeftTd">E-mail:</td>
<td class="formRightTd"><input type="text" value="" name="contact_email" id="contact_email" ></td>
</tr>
<tr id="ct2b">
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
<td class="formRightTd"><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
</tr><tr id="ct3">
<td class="formLeftTd">Phone:</td>
<td class="formRightTd"><input type="text" value="" name="contact_phone" id="contact_phone" ></td>
</tr>
<tr id="ct3b">
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
</tr>
<input type="hidden" name="department" id="department" value="0">
<tr id="ct7">
<td class="formLeftTd">Subject:</td>
<td class="formRightTd"><input type="text" value="" name="contact_subject" id="contact_subject" ></td>
</tr>
<tr id="ct7b">
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
<td><img src="editor_images/spacer.gif" width="1" height="5" border="0"></td>
</tr><tr id="ct8">
<td valign="top" class="formLeftTd">Message: </td>
<td class="formRightTd"><a name="s" id="s"></a><textarea name="contact_message" id="contact_message" ></textarea></td>
</tr><tr id="ct10">
<td class="formLeftTd formSubmitLeftTd">&nbsp;</td>
<td class="formRightTd formSubmitRightTd">
<input type="submit" name="Contact_Send" id="Contact_Send" value="Send Message" >
<input type="hidden" name="SendMessage" value="1">
</td>
</tr>
</table></form></div></span> </p>
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
There's no PHP in the code you gave...

That might be your problem.
 

JoseJ01

New Member
Messages
7
Reaction score
0
Points
0
Site is built with PHP builder but I guess it just the html code I posted.
 

JoseJ01

New Member
Messages
7
Reaction score
0
Points
0
Looks like the form now works and submits the information but never emails me the information. Ahhh..
 
Top