+ Reply to Thread
Results 1 to 4 of 4

Thread: Website Template - CONTACT FORM (php) gets error

  1. #1
    JoseJ01 is offline x10Hosting Member JoseJ01 is an unknown quantity at this point
    Join Date
    Mar 2010
    Location
    Bayamon, PR
    Posts
    7

    Unhappy Website Template - CONTACT FORM (php) gets error

    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>

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Website Template - CONTACT FORM (php) gets error

    There's no PHP in the code you gave...

    That might be your problem.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    JoseJ01 is offline x10Hosting Member JoseJ01 is an unknown quantity at this point
    Join Date
    Mar 2010
    Location
    Bayamon, PR
    Posts
    7

    Cool Re: Website Template - CONTACT FORM (php) gets error

    Site is built with PHP builder but I guess it just the html code I posted.

  4. #4
    JoseJ01 is offline x10Hosting Member JoseJ01 is an unknown quantity at this point
    Join Date
    Mar 2010
    Location
    Bayamon, PR
    Posts
    7

    Re: Website Template - CONTACT FORM (php) gets error

    Looks like the form now works and submits the information but never emails me the information. Ahhh..

+ Reply to Thread

Similar Threads

  1. Mail problems-website contact us form
    By jade852 in forum Free Hosting
    Replies: 1
    Last Post: 03-15-2010, 11:44 AM
  2. Help with Website Builder contact form please.
    By maverick.uk in forum Review My Site
    Replies: 2
    Last Post: 11-04-2009, 03:47 PM
  3. Error in contact form !
    By blackheart99999 in forum Free Hosting
    Replies: 8
    Last Post: 11-03-2009, 01:18 PM
  4. How to: Contact form with PHP
    By tttony in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 12-29-2008, 06:29 PM
  5. Contact Form Error
    By KeybladeSephi in forum Programming Help
    Replies: 7
    Last Post: 05-13-2008, 08:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers