⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Show input value in uppercase and insert in format uppercase into the database



eamon250d
  • profile picture
  • Member

Posted 03 January 2016 - 05:39 AM

Hi,

In the add form and change, I'd show upper case

Here's my idea:

 

HTML :

Code :

<input ... class="majuscule" />

CSS :

Code :

 

1
2
3
4

.majuscule

{

    text-transform: uppercase;

}

 

 


Amit Shah
  • profile picture
  • Member

Posted 06 January 2016 - 02:32 AM

Sorry didnt understand - u sharing your idea or you asking question?


eamon250d
  • profile picture
  • Member

Posted 13 January 2016 - 18:08 PM

When I insert a field, I would like to convert to uppercase before inserting into the DB. insert somewhere function

strtoupper($str) .

At the same time the inclusion see automatically in uppercase.

An idea ?


Amit Shah
  • profile picture
  • Member

Posted 18 January 2016 - 20:57 PM

well you can use a callback before insert to do the same. There u can convert the case and have your requirement fulfiled.

happy GCing :)