test for illegal characters and consequences

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys.

Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted.
I would like to know from some of you how you go about it?

Do you use a regular expression and test each textfield sequencially, also what do you do when you find illegal characters? do you strip them out of the inputted information or do you post an error message and tell them that there are illegal characters?

I have many pages and many textfields so I would like to use the best and most appropriate and time effective approach by taking in your suggestions before doing the testing and counter measure.

Thanks in advance
--

Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
[f] +27 86 681 5885

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux