Hello,
I'm using the following code to disallow users from keying in certain words in the search box of my form. The code is working fine.
How do I make the validation case insensitive? If you look at my code, you will notice that the words RM1, RM2, E30 etc are in uppercase. I want the code to prevent the user from keying in rm1, rm2, e30 etc as well.
Thanks a lot for your advice.
if (in_array($_POST['Text_Box_17'], array('03-', '04-', '05-', '06-', '07-', '08-', '09-', '012', '013', '016', '017', '019', 'E10', 'E20', 'E30', 'RM1', 'RM2', 'RM3', 'RM4', 'RM5', 'RM6', 'RM7', 'RM8', 'RM9', '012-', '013-', '016-', '017-', '019-'))) die('This keyword is disallowed. Please click the BACK button of your browser & change your search criteria to something else. Thanks :-)');