What is the best validation technique or function that I can use to detect spaces,commas or any other characters I dont expect from a user.
I know of ereg and eregi but it seems not to be working the way I want. The problem is that I am allowing a user to create a hall(actually a table in mysql) and if the supplied hall name contains spaces,commas then it results in a mysql error.
Thanks
rony