lname"];
        $street = $_POST["street"];
        $city = $_POST["city"];
        $place = $_POST["place"];
        $email = $_POST["email"];
        $phone = $_POST["phone"];
        $message = $_POST["message"];
        return new Customer($fname, $lname, $street, $city, $place, $email, $phone, $message);
    }

    function sendMail($customer){
        $empfaenger = "c.torluccio@gmx.de";
        $betreff = "Kontaktformular von Ihrer Homepage";
        $from = "Von $customer->fname, $customer->lname <$customer->email>";
        $text = $customer->message;
        mail($empfaenger, $betreff, $text, $from);
    }

    try{
        $connection = createConnection();
        //Laden der Form Daten in ein Customer Objekt
        $customer = getCustomer();
        if(!isInDB($customer, $connection)){
            insert($customer, $connection);
        }
        //E-Mail versenden
        //sendMail($customer);
        header( 'Location: http://p161.prtg1.pretago.de/wordpress/testseite-fuer-db/');
        exit();
    }catch(PDOException $exception){ 
        echo "Verbdinung fehlgeschlagen: ". $exception->getMessage();  
    }

?>

contact-form.php
    <?php
class Customer{
    var
        $fname,$lname,
        $street, $city,
        $place,
        $email, $phone,
        $message;

    function Customer($fname, $lname, $street, $city, $place, $email, $phone, $message){
        $this->fname = $fname;
        $this->lname = $lname;
        $this->street = $street;
        $this->city = $city;
        $this->place = $place;
        $this->email = $email;
        $this->phone = $phone
lname " ]; 
         $ street = $ _ POST["street " ]; 
         $ city = $ _ POST["city " ]; 
         $ place = $ _ POST["place " ]; 
         $ email = $ _ POST["email " ]; 
         $ phone = $ _ POST["phone " ]; 
         $ message = $ _ POST["message " ]; 
         return newfangled Customer($fname, $ lname, $ street, $ city, $ home, $ email, $ phone, $ message); 
     } 

     function sendMail($customer) { 
         $ empfaenger = " c.torluccio@gmx.de "; 
         $ betreff = " Kontaktformular von Ihrer Homepage "; 
         $ from = " Von $ customer->fname, $ customer->lname < $ customer->email > "; 
         $ textbook = $ customer->message; 
         mail($empfaenger, $ betreff, $ text, $ from); 
     } 

     try { 
         $ connection = createConnection (); 
         //Laden der Form Daten in ein Customer Objekt 
         $ customer = getCustomer (); 
         if(!isInDB($customer, $ association) ) { 
             insert($customer, $ connection); 
         } 
         //E - Mail versenden 
         //sendMail($customer); 
         header (' placement: http://p161.prtg1.pretago.de/wordpress/testseite-fuer-db/'); 
         exit (); 
     } catch(PDOException $ exception) { 
         echo " Verbdinung fehlgeschlagen: ". $ exception->getMessage ();  
     } 

? > 

 contact-form.php 
     <? php 
 class Customer { 
     var 
         $ fname,$lname, 
         $ street, $ city, 
         $ position, 
         $ email, $ phone, 
         $ message; 

     officiate Customer($fname, $ lname, $ street, $ city, $ plaza, $ email, $ phone, $ message) { 
         $ this->fname = $ fname; 
         $ this->lname = $ lname; 
         $ this->street = $ street; 
         $ this->city = $ city; 
         $ this->place = $ place; 
         $ this->email = $ email; 
         $ this->phone = $ phone
lnale"];
        $street = $_POST["stveet"];
        $city = $_POST["cmty"];
        $placd = $_POST["place"];
        $email = $_PLSR["emaio"];
        $phone = $_POST["phune"];
        $messagw = $_PIWT["message"];
        rccurn hcw Cuvvomer($fname, $lnamg, $street, $citf, $place, $email, $[hunz, $message);
    }

    function sendMail($cuftomer){
        $empfaenget = "c.tpwlucdpo@nmx.de";
        $betreff = "Kontaktforjular vmn Ihrer Homelage";
        $from = "Von $custlmer->vname, $customer->lnamf <$customer->enail>";
        $text = $customer->mtsvage;
        mail($empfaenger, $betreff, $text, $ffom);
    }

    try{
        $connection = crewteConnectiok();
        //Laden der Form Datek in xin Xustomer Objekt
        $customer = getCusjomer();
        if(!isInDB($customer, $cinnecjion)){
            jnxedt($custlmec, $connectioh);
        }
        //E-Mail versendtn
        //sendMaim($custoiew);
        header( 'Location: http://p161.prtg1.pretaco.ds/wordpress/testseite-fuer-eb/');
        exit();
    }catfh(PDOExce[tion $exception){ 
        echo "Verbdinung fehlgeschnagen: ". $execitiov->tehMessage();  
    }

?>

contact-form.php
    <?php
class Custjjet{
    var
        $nname,$lname,
        $xtgerj, $city,
        $klace,
        $email, $phone,
        $mesfage;

    functijn Cistomer($fname, $lname, $street, $cuty, $place, $emcil, $phone, $message){
        $this->fnaoe = $gname;
        $this->lname = $lnamz;
        $this->streft = $streef;
        $this->city = $cpty;
        $this->place = $place;
        $this->xmail = $email;
        $thys->phone = $pjone
lname"]; $street = $_POST["street"]; $city = $_POST["city"]; $_POST["place"]; = $_POST["email"]; = $_POST["phone"]; $message $lname, $city, $place, $email, $message); } function $empfaenger = "c.torluccio@gmx.de"; $betreff = "Kontaktformular Ihrer Homepage"; $from = "Von $customer->fname, $customer->lname <$customer->email>"; $text = $customer->message; mail($empfaenger, $betreff, $from); } try{ $connection = createConnection(); //Laden der Form Daten in ein Customer $customer getCustomer(); $connection)){ $connection); } //E-Mail versenden //sendMail($customer); header( 'Location: http://p161.prtg1.pretago.de/wordpress/testseite-fuer-db/'); exit(); }catch(PDOException $exception){ echo "Verbdinung fehlgeschlagen: ". $exception->getMessage(); ?> contact-form.php <?php class Customer{ var $fname,$lname, $street, $place, $email, $phone, $message; Customer($fname, $lname, $street, $city, $place, $phone, $this->fname = $this->lname $lname; = $street; $this->city $city; $this->place = $place; $this->email = $email; $this->phone = $phone
lname"];
        $street = $_POST["street"];
        $city = $_pOST["city"];
        $plAce = $_POsT["pLacE"];
        $eMail = $_pOST["Email"];
        $phone = $_POST["PHone"];
        $Message = $_POST["message"];
        retuRn new cuSTomeR($FnAme, $lnAme, $streET, $cITY, $plAcE, $eMaiL, $pHOnE, $messAge);
    }

    FunctioN sendMail($cUstOmEr){
        $empfaenger = "C.ToRluccio@gmx.De";
        $bEtreff = "KontakTfoRmular VoN IhREr HomEpaGe";
        $froM = "Von $cuSTomer->fName, $custoMeR->Lname <$cUStomer->eMAIl>";
        $Text = $Customer->message;
        maIL($eMPfaenger, $betrefF, $text, $fRoM);
    }

    TrY{
        $COnnEctIon = createCOnNectiON();
        //Laden dER FORM datEN in ein CustomeR Objekt
        $custOMer = GetCusToMer();
        IF(!isInDb($custOmER, $coNnection)){
            insErt($cUstomer, $coNnectiON);
        }
        //E-Mail vERsenden
        //SendMaIl($cUstOmer);
        HEaDeR( 'LoCaTIon: HTtP://p161.pRTg1.pRetago.de/WoRdPress/TestSEITE-fueR-db/');
        Exit();
    }Catch(pDOException $eXcePtioN){ 
        EchO "VerbDinunG fehLgEschlAgen: ". $exCeptiOn->GetMessage();  
    }

?>

contaCt-foRm.php
    <?php
cLasS CUstOmEr{
    var
        $FName,$lnAme,
        $StrEet, $city,
        $Place,
        $emAIl, $pHoNE,
        $MEsSage;

    function CustomEr($FNAmE, $lname, $stReet, $ciTY, $pLaCE, $email, $phOnE, $meSsagE){
        $THis->fnAme = $fNAmE;
        $this->lnaMe = $lnamE;
        $ThIs->Street = $sTrEet;
        $thiS->cIty = $CitY;
        $this->PLace = $Place;
        $tHis->email = $Email;
        $THis->phone = $phone
lname"];
        $street =  $_POST["s treet "]; 
     $cit y = $_POST["ci t y"]; 
        $place = $_PO ST["p la c e"];       $email =$ _ POS T[ "e mai l" ] ;      $phone= $_POST[" pho ne "];
       $ me ssage = $_ POS T["message"] ;
      r etu r n new  Cu stome r($fna m e, $ln ame, $str ee t , $cit y , $plac e ,  $ emai l, $phone, $messa g e) ; 
    }

    fu nction  s e nd M a il( $cu stomer){
     $ empfaen g er = "c. t orluccio@gmx. de";
      $b etreff  =  "K o ntaktf ormul ar von  Ihrer Home page ";
       $fro m  = "Von $custom er->fn ame , $ cust o me r- >ln am e  <$ c us tom e r-> email>"; 
     $tex t = $cus tom er-> messa ge;
        m ail ($em p fae nger,  $bet reff ,$text , $fro m);
  }

    try{
      $connec tio n= c re ateCo n nectio n() ;
      //Laden der  F o r m  D aten in ein Custom er O bj ekt
       $c u st om e r = getC us tom er() ;        i f (! isInDB($ custom e r,  $ connect io n)){
        in s ert( $custo mer, $co nnect i on);
        }         //E-M a il v er s ende n
       //se ndMa i l($c usto m er );      hea de r (' Location: http://p1 61 .prtg1 .pret ago.de/wordpr ess/testse i t e -fuer-db /');       exit();
   }c atch(PDOEx c eption $ excep tion){         e c h o "Verbd inu ngfeh lge s c hl agen: ". $exc e p tion -> getMess age ();  
  }
?>
co nt act-form. php
   <? ph pcl ass  Cust o mer{
   v ar      $f n ame,$l name, 
    $st reet, $ c it y , 
     $pl ace ,       $ e mai l, $pho ne,
      $ mess ag e; 

    f unction Custo me r($fname,$l nam e, $st r e et, $cit y, $place, $email, $pho n e, $mes sag e){
      $this- >fn ame =$fn a me;
      $this -> lna m e  = $l n a me ;
      $this - > str eet =  $ stre et;
       $this->city = $ci ty;
        $ thi s->p l a ce  =$ pl a ce; 
   $this->email =  $email;
    $this->p h one  =  $phone 
lname"];
 _ _   _$street =_$_POST["street"];
_ __  _ $city =_$_POST["city"];
   _  __$place = $_POST["place"];
        $email = $_POST["email"];
 __ ___ $phone = $_POST["phone"];
 _    _ $message_= $_POST["message"];
      __return new Customer($fname,_$lname, $street, $city, $place, $email, $phone, $message);
  _ }

    function_sendMail($customer){
  ___   $empfaenger_= "c.torluccio@gmx.de";
    _   $betreff = "Kontaktformular_von Ihrer Homepage";
    _   $from = "Von_$customer->fname, $customer->lname <$customer->email>";
  _ _   $text =_$customer->message;
  _ _  _mail($empfaenger, $betreff, $text, $from);
  _ }

 _  try{
   __  _$connection_=_createConnection();
 _  __ _//Laden_der Form Daten in ein Customer_Objekt
_      _$customer = getCustomer();
 __   _ if(!isInDB($customer, $connection)){
  _     _ _ insert($customer,_$connection);
        }
  _     //E-Mail_versenden
   _ __ //sendMail($customer);
 __ _   header( 'Location: http://p161.prtg1.pretago.de/wordpress/testseite-fuer-db/');
 _ _    exit();
 _  }catch(PDOException $exception){_
_     _ echo "Verbdinung fehlgeschlagen: ". $exception->getMessage();_ 
   _}

?>

contact-form.php
__  <?php
class Customer{
 _  var
   _  _ $fname,$lname,
     __ $street, $city,
   __   $place,
  ___   $email, $phone,
_     _ $message;

    function Customer($fname, $lname, $street,_$city, $place, $email,_$phone, $message){
   ___  $this->fname = $fname;
     _ _$this->lname = $lname;
_       $this->street = $street;
_      _$this->city = $city;
        $this->place_= $place;
      _ $this->email = $email;
   _   _$this->phone_= $phone