if($Name=='' or $Firma=='' or $Strasse=='' or $PLZ=='' or $Ort=='' or $EMail=='')
{
$res1 = mysql_query("SELECT TEXT FROM verschiedenes WHERE ID_SPRACHE ='$ID_SPRACHE' and ERKLAERUNG='Formular'", $conn);
$formular = mysql_fetch_row($res1);
$res2 = mysql_query("SELECT TEXT FROM verschiedenes WHERE ID_SPRACHE ='$ID_SPRACHE' and ERKLAERUNG='history'", $conn);
$zurueck = mysql_fetch_row($res2);
echo"$formular[0]
$zurueck[0]";
}
else
{
$result = mysql_query("SELECT FELD_14 FROM formular WHERE ID_SPRACHE ='$ID_SPRACHE'", $conn);
$feld = mysql_fetch_row($result);
$feld[0]=nl2br($feld[0]);
$admin = "info@xy.de";
$subject = "Test";
$titel = "Test\n";
$line="----------------------------------------\n";
list($name,$value)=each($HTTP_POST_VARS);
while(list($name,$value)=each($HTTP_POST_VARS) and $value!='Send')
{
$message.="$name: $value\n";
}
mail($admin,$subject,"$titel$line$message","From: $EMail");
$sql = "DELETE FROM produkt_sess WHERE SESS_ID = '$sid'";
$result = mysql_query($sql, $conn);
echo"$feld[0]";
}
?>
|