WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] geting error while submitting comment

[Resolved] geting error while submitting comment

Viewing 5 replies - 1 through 5 (of 5 total)
  • my site is villagestories.com

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Just to start, your contact form should not have a 6 character requirement on the name field.

    Are you using a plugin for the comment forum and which?

    anithamandalapu

    @anithamandalapu

    no,i didn’t use any plugin for that,i wrote the validation code for that particular fields.

    Neal Bloome

    @neal-bloome

    In your comment form you have this line of code (well in your html source)

    <form name="com" method="post" onSubmit="return Comment()">

    And your javascript just does it’s validation and sends the request but the request doesn’t go anywhere because your form field should look like this

    <form name="com" action="http://villagestories.com/wp-comments-post.php method="post" onSubmit="return Comment()">"

    Notice that you didn’t include the action attribute on your comment form, currently when your javascript returns true it looks for the action field and when it doesn’t see it, the system fails.

    Add the action field in your comment template and try again, it should fix your issue.

    anithamandalapu

    @anithamandalapu

    @neal Bloome
    thank u so much…it is working now.thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] geting error while submitting comment’ is closed to new replies.
Skip to toolbar