只是想与一些教程一起去!想不通为什么我的表单作用线得到一个错误为什么我在这里得到一个错误?
<?php
if (isset($_POST['Username'])&&isset($_POST['password'])) {
$username = $_POST['Username'];
$password = $_POST['password'];
if (!empty($Username)&&!empty($password)) {
echo 'OK';
} else {
echo 'You must supply an email and a password.';
}
?>
<form action="<?php echo $current_file; ?>" method="POST">
Email: <input type="text" name="username"> Password: <input type="password" name="password">
<input type ="submit" value = "Log In" />
</form>
你有什么错误? – andrewsi
您在PHP代码末尾缺少'}' – Baba
第一个'if'的结尾在哪里? – raina77ow