Is there a way to have text fields on a form automatically convert to all uppercase once a user exits the field, saving to the database in all caps?
Thanks!
Rick
Thanks!
Rick
<?php
$elements = array(
'input_name_a',
'input_name_b',
. . .
);
foreach ( $elements as $e ) {
$form->data[$e] = strtoupper($form->data[$e]);
}
?>