Welcome Guest, Not a member yet? Register   Sign In
standard Form Validation for textareas
#2

This is what I have come up with.. seems to work:

PHP Code:
if ( ! function_exists('customAlpha')) {
 
   function customAlpha($str)
 
   {
 
       if (!preg_match('/^[a-zA-Z0-9 .,\-\']*$/m'$str)) {
 
           return FALSE;
 
       } else {
 
           return TRUE;
 
       }
 
   }

Reply


Messages In This Thread
RE: standard Form Validation for textareas - by dbrooke - 10-31-2016, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB