das ist der originalcode, der funktioniert hatte ohne die checkboxen:
Code:
<?php
//print_r($_POST);
$message = <<<EOF
Country: $_POST[country]
Company: $_POST[company]
Name: $_POST[name]
Address: $_POST[address]
Address2: $_POST[address2]
City & Zip: $_POST[zip]
Country: $_POST[country]
Phone: $_POST[phone]
Fax: $_POST[fax]
Mobile: $_POST[mobile]
EMail: $_POST[email]
Message:
$_POST[message]
EOF;
$header.="Content-type: text/plain; charset=utf-8\n";
$header.="From: sales@cwt-international.com";
mail("server@vulcan5000.com","CWT_Anfr: ".$_POST[name]."/".$_POST[country],$message,$header);
//$location = "Location: ".$_POST['baseurl']."index.php?option=com_content&view=article&id=25&lang=".substr(strtolower($_POST['lang']),strrpos($_POST['lang'],"-")+1);
$lang = substr(strtolower($_POST['lang']),strrpos($_POST['lang'],"-")+1);
if($lang != 'us')
$location = $_POST['baseurl'].$lang."/email-sent.html";
else
$location = $_POST['baseurl']."email-sent.html";
Header("location:".$location);
?>
Hier die fehlermeldung:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/29/d150886761/htdocs/test/plugins/cwt-mailer/sendMail.php on line 35
Lesezeichen