/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

+8

function not_only_letters(word) {
     
    var OK = 1
    var NO = 0
 
     
    word = word.toUpperCase();
 
    var len = wyraz.length; 
 
    for(i = 0;  i < len;  i++){        
             
            if(word.charAt(i) <"A" 
                    && word.charAt(i) != "-" 
                        && word.charAt(i)  != " " 
                            && word.charAt(i) != "." 
                                && word.charAt(i) != "&" 
                                    && word.charAt(i) != "_" 
                                        && word.charAt(i) != "\"" 
                                            && word.charAt(i) != "'" 
                             
            ) {                
                if(polish_letter(word.charAt(i) ) == 0 ) 
                            return NO; 
            }
            if(word.charAt(i) >"Z" 
                       && word.charAt(i) != "-" 
                            && word.charAt(i)  != " " 
                                && word.charAt(i) != "." 
                                    && word.charAt(i) != "&" 
                                        && word.charAt(i) != "_" 
                                            && word.charAt(i) != "\""
                                                && word.charAt(i) != "'"
            ) {  
 
                if(word.charCodeAt(i) >188) 
                    continue;
                else
                {
                 if(polish_letter(word.charAt(i) ) == 0 ) 
                        return NO;
                else
                   continue;
                }
            }
    }
    var counter = 0;
    for(i = 0;  i < len;  i++){
            if(word.charAt(i) == "-" 
                        || word.charAt(i)  == " " 
                            || word.charAt(i) == "." 
                                || word.charAt(i) == "&" 
                                    || word.charAt(i) == "_" 
                                        || word.charAt(i) == "\""
                                            || word.charAt(i) == "'"
             ) {
                counter++;
            }
    }
    if (len > 0)
    if (counter==len)
    {
        return NO;
    }
    return OK;
}
 

Browse all snippets