R
|
RickG 9/18/2006 |
I would experiment and change this to: |
M
|
mmponline author 9/18/2006 |
This works fine, thanks RickG. |
R
|
RickG 9/18/2006 |
Welcome ... |
![]() |
Sergey Kornilov admin 9/18/2006 |
Here is the piece of code that does the job. It understands phrases as well as single words: $str = $values["UserName"]; |
M
|
mmponline author 9/19/2006 |
Sergey |
![]() |
Alexey admin 9/19/2006 |
Stephan, |
K
|
ke5rs 10/4/2006 |
Hi Here is the piece of code that does the job. It understands phrases as well as single words: $str = $values["UserName"]; |
![]() |
Alexey admin 10/5/2006 |
John, |
K
|
ke5rs 10/8/2006 |
Hello Sergey John, the posted code works fine with the both 'ST. PAUL' and ' ST. PAUL' values. Debug your event code by your own or post it here and I'll try to help you. |
![]() |
Alexey admin 10/9/2006 |
Hi, $str = strtolower($values['city']); for ($i=0; $i<strlen($str); $i++) { if ($i==0) $b = True; else $b = (substr($str, $i-1,1) == " "); if ($<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=11696&image=1&table=forumreplies' class='bbc_emoticon' alt='B)' /> $str = substr($str,0,$i).strtoupper(substr($str, $i,1)).substr($str, $i+1); else $str = substr($str,0,$i).strtolower(substr($str, $i,1)).substr($str, $i+1); } $values['city'] = $str; instead of: $values['city']=ucwords(strtolower($values['city']));
|
K
|
ke5rs 10/13/2006 |
Hi Alexey Hi, you can use the following code instead of: instead of: to fix this issue. |
![]() |
Alexey admin 10/16/2006 |
Hi, |