Can I make a suggestion?
I tend to look at the issue of user input the other way around... rather
than excluding things I don't think I want, I choose in allow things I *DO*
want... so instead of saying a username shouldn't contain
!@#$%^&*()_+-=<>?":';, I say it should contain a-zA-Z0-9_-.
This
At 14:11 31-1-2003, you wrote:
So I'm using ereg(pattern, input) to see if the pattern matches or not.
SO for exclusion I build the following pattern [^$] and pass it to ereg
above. So if the input includes a $ the ereg should return false and the
processing shouldn't take place.
Well the thin
Hello Everyone
This might be slightly offtopic since I'm not sure its php related but
I'm working on a script where some inputdata is taken for further
processing. For validation purposes I want to make sure certain chars are
not part of the input. Basically stuff like $ * :; etc...
So I'm
3 matches
Mail list logo