Author Topic: Capitalize all letters in FNAME & LNAME?  (Read 1335 times)

BoomPop

  • Posts: 18
    • View Profile
Capitalize all letters in FNAME & LNAME?
« on: November 14, 2005, 11:14:13 pm »
Hiya Dean!

I've seen this covered on the forum, but only to a small degree.  I need to capitalize EVERY letter of the fname, lname, and user1 fields *before* they are written to the database.  I know it could be done with javascript, but you know me... PHP is the only way to go if I want 100% consistent results.

I know this will require a simple use of strtoupper but I'm not sure how or where to shove it.  LOL!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Capitalize all letters in FNAME & LNAME?
« Reply #1 on: November 15, 2005, 07:45:51 am »
Set up a file signup-xtra.php in your main ListMail folder containing the following (example for list 1):

Code: [Select]
<?phpif($list=='1'){ mysql_query("update lm_users set fname = '".strtoupper($fname)."', lname = '".strtoupper($lname)."' where uid = '$uid'");}?>

Please note there are some improvements to signup-xtra in the upcoming update.  Notably, the welcome message is processed AFTER signup-xtra.php as it should be...

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting