Morris2 Posted October 4, 2011 Share Posted October 4, 2011 Hi. How do I arrange, that only capital letters are written into my HTML form, no matter if the user uses capital letters or not? Regards Morris. Quote Link to comment Share on other sites More sharing options...
awjudd Posted October 5, 2011 Share Posted October 5, 2011 If you are storing it in the database or somewhere you could always just use PHP's strtoupper (http://php.net/strtoupper) or if you want to maintain the user's input (the correct thing to do) you could just use CSS to make it uppercase (text-transform:uppercase) when displaying it. ~juddster Quote Link to comment Share on other sites More sharing options...
haku Posted October 5, 2011 Share Posted October 5, 2011 You do it with javascript. Check the user input, and convert it to a capital if it's not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.