我曾尝试将其用作 if 语句,但它不起作用。它说不正确的传球和错误的东西。怎么了?
$status = $_POST['status'];
$server = $_POST['server'];
$room = $_POST['room'];
$password = $_POST['password'];
$submit = $_POST['submit'];
if ($submit) {
if ($server && $status && $room && $password) {
if ($password == "o") {
echo "Done";
} else {
echo "all fields";
}
} else {
}
echo "incorrect pass";
} else {
echo "submit";
}