Parse error: syntax error, unexpected '(' in D:\xampp3\xampp\htdocs\contact.php on line 10
I have a problem with my code here. I'm making a simple "Contact us" via html / PHP. But i'm new to all this, and learning it from step to step. So thats why i've come here. I get this error: Parse error: syntax error, unexpected '(' in D:xampp3xampphtdocscontact.php on line 10 and here is the code:
<i><?php
include 'core/init.php';
include 'includes/overall/header.php';
if (empty($_POST) === false) {
$name = $_POST ['name'];
$email = $_POST ['email'];
$message = $_POST ['message'];
if (empty($name) === true || (empty( ($email) === true || (empty($message === true) {
$errors[] = 'Name, email and message are required!';
} else {
}
?></i>
尝试这个:
<i><?php
include 'core/init.php';
include 'includes/overall/header.php';
if (empty($_POST) === false) {
$name = $_POST ['name'];
$email = $_POST ['email'];
$message = $_POST ['message'];
if (empty($name) === true || empty($email) === true || empty($message) === true) {
$errors[] = 'Name, email and message are required!';
} else {
}
// The else above is actually not needed thus you could remove it.
}
?></i>
链接地址: http://www.djcxy.com/p/11990.html
下一篇: 解析错误:语法错误,意外的'('在第10行D:\ xampp3 \ xampp \ htdocs \ contact.php中