12
I would like to put masks in different fields, all via php, for example:
cnpj - "##.###.###/####-##"
Cpf - "###.###.###-##"
zip code - "#####-###"
telephone - "(##)####-####"
date - "##/##/####"
I don’t want to use jquery, or javascript masks, I would like to do it in php anyway, because I want to use these masks to format data coming from the database.
The expression "dynamically" is usually used when we refer to a change in HTML after it is already loaded on the page, so what you want is to mask before the HTML presentation ;)
– SneepS NinjA
I think "waste" doing this in server-side, will create an unnecessary work, which could be easily transferred to the customer, in your browser, but that’s just my opinion.
– Inkeliz