Title: Form backend side validation
Last modified: February 15, 2023

---

# Form backend side validation

 *  [AweCodeBox](https://wordpress.org/support/users/awecodebox/)
 * (@awecodebox)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/form-backend-side-validation/)
 * I am producing a form plugin. Can anyone recommend a good and reliable library
   to validate the fields on the backend side?
   What are the roles required to validate
   each field?

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

 *  [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/form-backend-side-validation/#post-16473965)
 * Hopefully you can find the resources here helpful:
   [https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data](https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data)
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/form-backend-side-validation/#post-16474689)
 * There are a number of built-in sanitation functions in the resources that Jason
   linked to. Sanitation helps prevent malicious code from being entered.
 * Validation confirms data is fit for purpose and should be as stringent as possible
   without being overly constraining. Ideal validation would be unique to a particular
   field, so generic validation functions would be less than ideal. Each should 
   be developed for the specific field. There are however a number of generic approaches,
   but the specific constraints will vary by a field’s specific purpose.

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

The topic ‘Form backend side validation’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/form-backend-side-validation/#post-16474689)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
