PHP Classes

File: en_messages.php

Recommend this page to a friend!
  Packages of Chris Hubbard   phalidate   en_messages.php   Download  
File: en_messages.php
Role: Auxiliary script
Content type: text/plain
Description: English error messages
Class: phalidate
Data validation class
Author: By
Last change: change file format from defined variables to an array
Date: 23 years ago
Size: 767 bytes
 

Contents

Class file image Download
<?php
/**
 * error message array
 *
 * where the key corresponds to the error id in phalidators and the value is the error message to return to the UI
 */
$error = array (
    10 => "data is not alpha",
    20 => "data is not alphanumeric",
    30 => "data is not filled in",
    40 => "data is not numeric",
    50 => "data is not a valid email",
    60 => "data is not a valid date",
    70 => "data is not a loose string",
    80 => "data does not have specified value (and should)",
    90 => "data does have specified value (and shouldn't)",
    100 => "data is not a url",
    110 => "data is not a valid time",
    120 => "data is not a strong password",
    130 => "data is not currency",
    999999 => "undefined error");  // do not remove, this is the default error message

?>