Adding alpha_spaces_dashes as a native validation rule |
10-16-2016, 05:46 AM
(This post was last modified: 10-16-2016, 05:49 AM by PaulD. Edit Reason: minor change )
There are some good examples given here:
http://stackoverflow.com/questions/23857...-last-name But personally, I would just not validate it in that way (except for min_length, max_length and required of course). As long as you are cleaning on output, there should be no problem with XSS. |
Messages In This Thread |
Adding alpha_spaces_dashes as a native validation rule - by Cannondale - 10-16-2016, 05:25 AM
RE: Adding alpha_spaces_dashes as a native validation rule - by Narf - 10-16-2016, 05:37 AM
RE: Adding alpha_spaces_dashes as a native validation rule - by PaulD - 10-16-2016, 05:46 AM
RE: Adding alpha_spaces_dashes as a native validation rule - by Cannondale - 10-16-2016, 06:20 AM
|