当我单击表单页面上的提交按钮时,我收到消息:“解析错误:语法错误,意外的 T_STRING...在第 10 行”。我是 PHP 新手,不知道为什么会出错。任何帮助,将不胜感激。这是PHP代码:
<?php
$to="me@my.com";
$subject="Bits";
$message=
"Customer name: ". $_POST ['name']. "\r\n".
"Email: ". $_POST ['email']. "\r\n". "\r\n".
"Ordered Bits: ". $_POST [''] . "\r\n" .
$from="$_POST ['email'];
$headers = "From: $from". "\r\n";
$headers = "Bcc: me2@my.com" . "\r\n";
mail($to,$subject,$message,$headers);
?>