我得到一个我已经关闭Parse error: syntax error, unexpected T_IF
的。我找不到为什么声明有问题if (mail($to, $subject, $body, $header))
semi-colons
If
<?php
include('dbconnect.php');
if (isset($_POST['submit']))
{
...
$to = 'sent@sent.com';
$subject = $_POST['Subject'];
$header = 'From:' .$_POST['Email'];
$message =
'New fedback sent by
First Name: '.$_POST['FirstName'].'
Last Name: '.$_POST['LastName'].'
about '.$_POST['Subject'].'
Message: '.$_POST['msg'].'
'
if (mail($to, $subject, $body, $header))
{
}
?>