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: 11439

  • 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.11 | Docs | Modules | Bugs

Login

Who's Online

176 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits