WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] Comment form jquery check

[Resolved] Comment form jquery check

  • Hello,
    I want to ask is it possible to add a jquery/javascript checker for the required fields and not to be sent to wp-comments-post.php page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • bcworkz

    @bcworkz

    Yes it is. Whatever checking that can be done locally by the browser will be more efficient than sending the data to your server for checking.

    But whatever is done is still untrusted, it only really works for convenience things like “You forgot to provide an email address dummy!”. Input still needs to be sanitized and vetted by your server. All data from the browser can be corrupted by a bad actor no matter how much jquery you throw at it.

    I just found this plugin http://wordpress.org/extend/plugins/comment-validation/

    This is exactly what I have been looking for.
    Thanks for the help anyway 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Comment form jquery check’ is closed to new replies.