Das Form funzt SUPER - Text kann man auch reinschreiben - sieht halt nur sch.... aus.
Übernimmt auch alle Formatierungen. Merde

Code: Alles auswählen
$article = new Article($_REQUEST['idart'], $client, $lang);
Wenn die Informationen "nur" oben drüber stehen, werden sie nicht mitgeschickt.derSteffen hat geschrieben:Nun soll aber jetzt in oder über dem Formular auch automatisch die Bezeichnung der Klassenfahrt und das Datum der Klassenfahrt stehen und diese Informationen sollen natürlich auch beim Absenden mitgeschickt werden.
Code: Alles auswählen
<script type="text/javascript">
//<![CDATA[
document.getElementById['KlassenfahrtTitel'].value = "<?php echo $Title; ?>";
document.getElementById['KlassenfahrtText'].value = "<?php echo $Content; ?>";
//]]>
</script>
Code: Alles auswählen
Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w00893f3/contenido/includes/include.con_editcontent.php(634) : eval()'d code on line 1441
Code: Alles auswählen
Parse error: syntax error, unexpected T_LNUMBER in /www/htdocs/w00893f3/contenido/includes/include.con_editcontent.php(634) : eval()'d code on line 1441
This Modul make HTML-Emails with the phpmailer class (Contenido Included).i use this module in utf-8 language to output in Greek...How can i change it, in order to have te correct text??
Code: Alles auswählen
$mail = new phpmailer;
$mail_body = '<html><head></head><body bgcolor="#ffffff"><table cellspacing="0" cellpadding="2" border="0">';
if (is_array($_POST)) {
foreach ($_POST as $key => $value) {
if (($key != 'sicherheitscode')AND($key != 'xtcFormSubmit')AND($key != 'fromthismail')AND($key != 'confirm')) {
if (is_array($value)){$value=implode(",", $value);}
$mail_body .= "<tr><td>$key</td><td>$value</td></tr>";
}
}
}
$mail_body .= '</table></bo'.'dy></html>';
$mail->Host = "localhost";
$mail->IsHTML(true);
#Get mailer from settings
switch (strtolower("CMS_VALUE[4]")) {
case "smtp" :
$mail->IsSMTP();
$host = "CMS_VALUE[5]";
$user = "CMS_VALUE[6]";
$password = "CMS_VALUE[7]";
if (($host != '') && ($user != '') && ($password != '')) {
$mail-> $SMTPAuth = true;
$mail->Host = $host;
$mail->Username = $user;
$mail->Password = $password;
}
break;
case "mail" :
$mail->IsMail();
break;
case "sendmail" :
$mail->IsSendmail();
break;
case "qmail" :
$mail->IsQmail();
break;
default :
}
if(isset($_POST["fromthismail"])){
$fromthismail=$_POST["fromthismail"];
$mail->From = trim($_POST[$fromthismail]);
$mail->FromName = "";
}else{
$mail->From = "CMS_VALUE[0]";
$mail->FromName = "CMS_VALUE[2]";
}
$mail->AddAddress("CMS_VALUE[1]", "");
$mail->Subject = "CMS_VALUE[3]";
$mail->Body = $mail_body;
$mail->WordWrap = 50;
$mail->Send();
Code: Alles auswählen
$mailer->CharSet = "UTF-8";