Skip to content

Instantly share code, notes, and snippets.

@aqualad
Created March 7, 2013 20:50
Show Gist options
  • Save aqualad/5111678 to your computer and use it in GitHub Desktop.
Save aqualad/5111678 to your computer and use it in GitHub Desktop.
validatelang
<?php
class langvalidate extends lang
{
public $v1='is required';
public $v2='must be between';
public $v3='and';
public $v4='must be between 2 and 32 characters long';
public $v5='must only contain letters, numbers and ! # $ % * / ? | ^ { } ` ~ & + - = _ and must start with a letter';
public $stringMsg = 'characters long';
public $numberMsg = 'does not seem to be a valid number';
public $integerMsg = 'does not seem to be a valid number';
public $emailMsg = 'does not seem like a valid email address';
public $cdateMsg = 'does not seem like a valid date';
public $uriMsg ='does not seem like a valid url';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment