Functions of ISXXX family.
All ISXXX functions are using for check of types of the data. Functions accept unlimited quantity of parameters on an input and returns "1" in case of conformity of all transferred parameters to checked type.
ISEMAIL
Checks parameters on conformity to the simplified pattern of the post address.
Example:
<TMPL_if ISEMAIL("abc@example.com", email)>
ISALPHA
Checks parameters on presence only alphabetic symbols ([a-zA-Z]).
Example:
<TMPL_if ISALPHA("example")>
ISNUM
Checks parameters on presence only numeric symbols ([0-9]).
Example:
<TMPL_if ISNUM(some_value, "12345678")>
ISALNUM
Checks parameters on presence only alphanumeric symbols ([a-zA-Z0-9]).
Example:
<TMPL_if ISALNUM("mode123")>
ISINT
Checks parameters on conformity to an integer.
Example:
<TMPL_if ISINT("-890")>
ISFLOAT
Checks parameters on conformity to an float.
Example:
<TMPL_if ISFLOAT("1.234E+3")>
Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp