A nifty little tip from phi148

It only seemed to work for the first name only, so I had to add the code to
the last name also.

In catalog/create_account

Around line 23 change this:

$firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);


$lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);

to this:

$firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
$firstname = ucwords(strtolower($firstname));


$lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
$lastname = ucwords(strtolower($lastname));


More...