WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comment form jquery check (3 posts)

  1. v0rt3x
    Member
    Posted 1 year ago #

    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?

  2. bcworkz
    Member
    Posted 1 year ago #

    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.

  3. v0rt3x
    Member
    Posted 1 year ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic