1
mrphilong
XoopsFormText all input to UPPERCASE

HI,

I would like to convert all input text from below into UPPERCASE before inserting into database.

$addrecordform->addElement(new XoopsFormText(_MD_SITETITLE 'title'50100));

2
Mamba
Re: XoopsFormText all input to UPPERCASE
  • 2013/9/7 5:34

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Depends how you want to use it. There is a Smarty modifier:

class\smarty\plugins\modifier.upper.php

or you can use the PHP function:
http://php.net/manual/en/function.strtoupper.php
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

167 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits