PHP Classes

PHP Sanitize Object package blog

Recommend this page to a friend!

Latest PHP Sanitize Object package blog posts

  All package blogs All package blogs   PHP Sanitize Object PHP Sanitize Object   Blog PHP Sanitize Object package blog   Post article Post article  

1. How Can PHP Sanitize Form Data to Fix Common User Mistakes Automatically

Updated on: 2023-10-20

Posted on:

Secure PHP applications must be careful with the values passed to the PHP code from external sources they do not control, such as the parameters passed to PHP via HTTP requests.

When the user enters the values, for instance, in a form, it may be necessary to tell the user to fix invalid values submitted via forms so that the values can comply with applicable rules.

For simple user mistakes, such as incorrect use of the case of words of a person's name, it may be more user-friendly to make the PHP code fix the issue of the letters rather than making the user select the case of the person's name.

This package can do that kind of automatic fixing of values passed to the PHP application by sanitizing important data object classes according to the rules defined in the comments of those classes.

This way, the user will not be bothered to fix the values entered in the forms, and those values will be compliant with the PHP application rules.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   PHP Sanitize Object PHP Sanitize Object   Blog PHP Sanitize Object package blog   Post article Post article