da wo der Eintrag in die datenbank statt findet diese variable ist umzuwandelen.
Beispiel in aus der Datei create_account.php
$firstname = tep_db_prepare_input(ucfirst($_POST['firstname']));
$lastname = tep_db_prepare_input(ucfirst($_POST['lastname']));
aus john wird John
aus smith wird Smith
Auch mb_ucfirst ist eventuell zu verwenden
Hier mal mein Code den ich bei mir in der datei create_acount.php verwende:
$firstname = tep_db_prepare_input(ucwords($_POST['firstname']));
$lastname = tep_db_prepare_input(ucwords($_POST['lastname']));
if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($_POST['dob']);
$email_address = tep_db_prepare_input($_POST['email_address']);
if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input(ucwords($_POST['company']));
$street_address = tep_db_prepare_input(ucwords($_POST['street_address']));
if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($_POST['suburb']);
$postcode = tep_db_prepare_input($_POST['postcode']);
$city = tep_db_prepare_input(ucwords($_POST['city']));
ucwords ist gut dafür
Also generell die POST Variable auf ucwords einstellen und zwar bevor der Eintrag in die Datenbank erfolgt.