validations.php
//  and return true or false accordingly.
and return true or false accordingly.
and return true or false accordingly .
function is_alpha_numeric($str)
        {
                if(!preg_match("/^[A-Za-z0-9 ]+$/",$str))
                        return false;
                return true;
        }
function is_alpha_numeric ( $ str ) { if ( ! preg_match ( " /^[A-Za-z0-9 ]+$/ " , $ str ) ) return false ; return true ; }
and return true or false accordingly.
and return true or false accordingly .