force someone to write in capitals
Here is the CSS script
<input type="text" name="Name" style=" text-transform: uppercase;">
My problem is that the text written inside the above text field is stored lowercase in my database (Mysql) using php.
Do you know what cause this problem. Does CSS transform completely the text into capitals or not?
IMHO is css only to style your content. try a php functin like:
string strtoupper ( string string)
these will work for you.
It want some script to turn the CapLock On and i thought that CSS was the best but i am quite wrong.
Yeah, text-transform only affects how the user input is
displayed, not how it is sent to the server. Use the strtoupper() PHP function once you're about to insert the input into the database.
Or if you're using ASP
Thanks for your response. I fixed as you mentioned.