For my Username input box, i have
Code: Select all
if (preg_match('/^[a-z0-9_]{5,20}$/i', $username))How do i create a validation similar to above that only checks that the name input box is 1-20 characters in length (any characters can be used)
Thanks