How to disable/enable keys |
(02-12-2021, 08:26 AM)brianjamestorr Wrote:(02-11-2021, 12:23 PM)christaliise Wrote:(02-10-2021, 01:33 AM)brianjamestorr Wrote: You can use regex and disable input for those characters you don't allow. Thanks @brianjamestorr - I think it is prudent to have both, frontend & backend. In the meantime Im focusing on the form_validation & only one text box (Length). I have added your snippet of code (but allowing only 0-9 .) in addition to an existing form_validation line as below, but I get the following error. Message: Call to undefined function length() PHP Code: $config = array( //This line is existing Can you advise what is needed to define the function? As a matter of interest will that allow backspace? |
Messages In This Thread |
How to disable/enable keys - by christaliise - 02-07-2021, 05:27 AM
RE: How to disable/enable keys - by paliz - 02-07-2021, 12:14 PM
RE: How to disable/enable keys - by christaliise - 02-07-2021, 02:43 PM
RE: How to disable/enable keys - by brianjamestorr - 02-10-2021, 01:33 AM
RE: How to disable/enable keys - by christaliise - 02-11-2021, 12:23 PM
RE: How to disable/enable keys - by brianjamestorr - 02-12-2021, 08:26 AM
RE: How to disable/enable keys - by christaliise - 02-14-2021, 10:35 AM
RE: How to disable/enable keys - by christaliise - 02-18-2021, 07:15 AM
RE: How to disable/enable keys - by brianjamestorr - 02-25-2021, 08:37 AM
RE: How to disable/enable keys - by christaliise - 02-26-2021, 05:03 AM
RE: How to disable/enable keys - by christaliise - 02-27-2021, 06:13 AM
|