提交不正确[关闭]

html

    <?php
            session_start();
            include('includes/header.php'); 
            ?>

            <div class="container">
                <!-- Outer Row -->
                <div class="row justify-content-center">
                    <div class="col-xl-6 col-lg-6 col-md-6">
                        <div class="card o-hidden border-0 shadow-lg my-5">
                            <div class="card-body p-0">
                                <!-- Nested Row within Card Body -->
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="p-5">
                                            <div class="text-center">
                                                <h1 class="h4 text-gray-900 mb-4">Login Here!</h1>
                                                <?php
                                                    if(isset($_SESSION['status']) && $_SESSION['status'] !=''){
                                                        echo '<h3 class="bg-danger text-white"> '.$_SESSION['status'].' </h3>';
                                                        unset($_SESSION['status']);
                                                    }
                                                ?>
                                            </div>
                                            <form class="user" action="login_code.php" method="POST">
                                                <div class="form-group">
                                                    <input type="email" name="email" class="form-control form-control-user"
                                                        placeholder="Enter Email Address...">
                                                </div>
                                                <div class="form-group">
                                                    <input type="password" name="password" class="form-control form-control-user"
                                                        placeholder="Password">
                                                </div>

                                                <button type="submit" name="login_btn" class="btn btn-primary btn-user btn-block">
                                                    Login
                                                </button>
                                                <hr>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <?php
            include('includes/scripts.php'); 
            ?>

php

        if(isset($_POST['login_btn']))
        {
            $email_login = $_POST['email']; 
            $password_login = $_POST['password'];

            $query = "SELECT * FROM register_user WHERE email='$email_login' AND password='$password_login'  ";
            $query_run = mysqli_query($connection,$query);

            if(mysqli_fetch_array($query_run))
            {
                $_SESSION['username'] = $email_login;
                header('Location: index.php');
            }
            else
            {
                $_SESSION['status'] = "Invalid E-mail Or Password";
                header('Location: login.php');
            }
        }


        ?>

输入我的代码后,我会将零件代码上传到带有数据库的免费主机 用户名和密码并提交它并不需要我进入index.php 如果用户名匹配,第二个代码我放在标题位置index.php 密码,但不幸的是,它停留在login_code.php上,有人可以吗 帮帮我