This topic is locked

Capitalize the first letter of each word in a field

4/29/2007 7:51:15 PM
PHPRunner General questions
M
MichaelStoppay author

I know there is an older post (Unless I've drank too much and I'm making things up again) that talks about how to make it so that on a field it will capitalize the first letter of each word before entering it into the database... anyone recall this or know the solution?

Pfeiffer 4/30/2007

Hello,
you must do it in event -before add- and -before update- . Use PHP-function ucwords to change all first letters of a word .
for Example
$values["Street"] = ucwords ($values["Street"]);
Best regards

Uwe Pfeiffer