include('wuk_functions.php'); $status = "kontakt_failed"; $type = "text"; $edit = ""; /* Hinweis zu 'readonly': * Da das Attribrut 'readonly' nur bei neuere Browser funktioniert * (IE 4.0 und N 6.0), findet es hier auch nur bei den textarea-Feldern * Anwendung. Im Zweifel sind diese im kontakt_filled-Status ueberschreibbar, * was ja nicht so tragisch ist. Die text-Felder werden durch gleichnamige * hidden-Felder ersetzt. */ if (isset ($weiter) && trim($firma)!="" && trim($strasse)!="" && trim($plz)!="" && trim($ort)!=""){ $status = "kontakt_filled"; $type = "hidden"; $edit = "readonly"; } if (isset($zurueck)){ $status = "kontakt_back"; $type = "text"; } if (isset ($senden)){ $nachricht = "Firma: ".$firma."\n"; $nachricht.= "Ansprechpartner: ".$ansprechpartner."\n"; $nachricht.= "Strasse: ".$strasse."\n"; $nachricht.= "PLZ: ".$plz."\n"; $nachricht.= "Ort: ".$ort."\n"; $nachricht.= "Telefon: ".$tel."\n"; $nachricht.= "Email: ".$email."\n"; $nachricht.= "Branche: ".$branche."\n"; $nachricht.= "Anzahl_Mitarbeiter: ".$anzMitarbeiter."\n"; $nachricht.= "Anfrage: ".$anfrage."\n"; if (mail("doerrenberg@wukberatung.de","Anfrage ueber www.wukberatung.de, ".$firma,$nachricht) == 0){ ?> }else{ $status = "kontakt_sent"; $type = "hidden"; $edit = "readonly"; $okArray = getContent("daten/ok.dat"); } } ?>
if ($status == "kontakt_sent"){ for ($mm = $okArray['start']; $mm < $okArray['end']; $mm++){ echo($okArray['fileArray'][$mm]); } } ?>