我先检查了所有的问题。但他们都没有帮助解决我的问题。
我有连接到 HTML 联系表单的 PHP 电子邮件回复程序。我需要在发送给客户的电子邮件回复器中显示选定的复选框值。
PHP代码
<?php
if(isset($_POST) && ($_POST['send'] == 1)){
$documents = array(
'document1' => 'http://www.example.com/document1.doc',
'document2' => 'http://www.example.com/document2.doc',
'document3' => 'http://www.example.com/document3.doc'
'document4' => 'http://www.example.com/document4.doc'
);
$to = 'lubosmasura@gmail.com';
$subject = 'Prihláška na školenie';
$name = $_POST['name'];
$email = $_POST['email'];
$document = implode(", ",$post['document']);
if(isset($_POST['document']) && count($_POST['document']) > 0){
foreach($_POST['document'] as $doc){
if(isset($documents[$doc])){
$document = implode(", ",$post['document']);
$message = "
ŠKOLENIE: $document
";
}
}
}
$headers = 'From: noreply@marcelaskolenia.sk' . "\r\n" .
'Reply-To: noreply@marcelaskolenia.sk' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $message, $headers);
}
?>
电子邮件回复程序可以工作,但不会显示消息后面的 HTML 表单中选定的复选框值 ŠKOLENIE:CHECKBOX HERE
有任何想法吗?谢谢
皈依舞
MMTTMM