Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
<?php
	...
	$rules = array(
		'last_name' => array(
			'format' => array(
				'rule' => array("minLength", "3"),
				'message' => "Your last name must be at least 3 characters in length."
			)
		)
	);
	...
?>

...

Code Block
languagephp
<?php
	...
	$rules = array(
		'last_name' => array(
			'format' => array(
				'rule' => array("maxLength", "32"),
				'message' => "Your last name must not exceed 32 characters in length."
			)
		)
	);
	...
?>

...

Code Block
languagephp
<?php
	...
	$rules = array(
		'last_name' => array(
			'format' => array(
				'rule' => array("betweenLength", "3", "32"),
				'message' => "Your last name must be between 3 and 32 characters in length."
			)
		)
	);
	...
?>

...