WordPress.org

Ready to get started?Download WordPress

Forums

Contact form (3 posts)

  1. hapki88
    Member
    Posted 8 months ago #

    Contact form is working but can't seem to remove the error message from the page (or even know if this is working). New to WordPress so hopefully its an easy fix. Thanks in advance.

    <script type="text/javascript">// <![CDATA[var obligate = ["Name", "Email", "Message" ];// ]]></script><script type="text/javascript" src="/js/chkFrm.js"></script>An error occurred.<script type="text/javascript">// <![CDATA[if (window.location.search == "?err"){document.getElementById("errMsg").style.display = ""; }// ]]></script>
    
    <form style="margin-top: -36px;" action="/_frmProc.php" method="post" onsubmit="return valFrm();">
    <input type="hidden" name="backURL" value="/thank-you/" />
    <input type="hidden" name="recAddr" value="webmail@website.com" />
    <input type="hidden" name="fromAddr" value="no-reply@website.com" />
    
    <table class="contactform">
    <tbody>
    <tr>
    <td>Name: <input type="text" name="Name" /></td></tr>
    <tr>
    <td>E-mail: <input type="text" name="Email" /></td></tr>
    <tr>
    <td>Phone (optional): <input type="text" name="Phone" /></td></tr>
    <tr>
    <td>Your message: <textarea class="textarea" name="Message"></textarea></tr>
    <tr>
    <td><button type="submit">Submit</button></td></tr>
    </tbody>
    </table>
    </form>
    </td>
  2. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

  3. hapki88
    Member
    Posted 8 months ago #

    Within the first block of code I wrote "An error occurred." as a result of 'check form' This message appears whenever the webpage is loaded, even before the form is submitted.

Reply

You must log in to post.

About this Topic