I am trying to figure out how I can convert a users input in specific fields, to be all uppercase.
Any ideas would be greatly appreciated.
Thanks,
Brandon
I am trying to figure out how I can convert a users input in specific fields, to be all uppercase.
Any ideas would be greatly appreciated.
Thanks,
Brandon
Once you convert it, what are you going to do with it?
You will want to use the strtoupper PHP function before displaying it or saving it. If you can tell us what you're doing to do with the entered information, we can show you how to convert it beforehand.
A link to your form with the field you want to work with will help as well. Thanks
Thanks Chris,
The URL is http://tinyurl.com/3zaeyyw
I figured out how to make the type in the form fields capitalize using css, but it doesn't save or send capitalized.
Thx,
Brandon
Looks like you're just changing the display of the field with "text-transform: uppercase". That will take care of display, but the submission would be in whatever format the visitor submitted in. You probably want to do something like this in your theme's functions.php:
I looked at your page and it looks like this is form ID 1, and also looked at the CSS you added to get the list of fields you want upper-cased. Please change either of those things as necessary.
Sorry about the crazy tabs in that paste. Lost something in translation there.
Is there a similar functions.php edit to force all input in my form to Titlecase?