Mask Input – PHP Database Form https://phpdatabaseform.com Generate web form from database. Simple. Fri, 26 Dec 2014 16:07:16 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 Mask Input https://phpdatabaseform.com/examples/mask-input/ Mon, 14 Jul 2014 23:02:18 +0000 http://phpdatabaseform.com/?p=324 Input mask provides a general format to text field and enforces its structure as the user typing in values. It provides the user an idea about how they should enter the data. Use set_mask() method to mask any text input.

phpDatabaseForm uses an excellent jQuery Mask Input created by Igor Escobar available distributed under MIT license.

phone_mask

// ... code omitted
$dbForm -> load_form(9);
$dbForm -> redirect_after_submit("http://example.com");
$dbForm -> set_mask("HomePhone", "(000)000-0000", "{placeholder: '(___)__-____'}");
$dbForm -> display();

Live demo

]]>