I want to stop users adding stuff to my sql database in caps.... now is this a code that should be added when the user writes it in the text box or will it be a code at sql insert phase?
Printable View
I want to stop users adding stuff to my sql database in caps.... now is this a code that should be added when the user writes it in the text box or will it be a code at sql insert phase?
well, both can do it. Safer is to do it at the SQL phase, but I don't know what functions to use, in JavaScrip it is:
mystr=mystr.toLowerCase()
edit:
I found the function in PHP that you shoulduse for this.