Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osullivan1533006711

Pioneers
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    osullivan1533006711 got a reaction from mcmannehan in 1. Buchstabe umwandeln(upper) beim Kunden Formular   
    Vielen Dank, mache ich gerne.
    Im Moment steht ein Web Server Umzug an, werde es so schnell  nicht probieren können
  2. Like
    osullivan1533006711 reacted to mcmannehan in 1. Buchstabe umwandeln(upper) beim Kunden Formular   
    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
  3. Like
    osullivan1533006711 reacted to mcmannehan in 1. Buchstabe umwandeln(upper) beim Kunden Formular   
    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.
×
×
  • Create New...