Php 无法发布popup.html(html文件)

Php 无法发布popup.html(html文件),php,html,Php,Html,当我尝试单击登录按钮时,它给出错误:“无法发布到popup.html” popup.html 如果看不到您的代码,我会说: 您不能发布到html页面。您需要一个可以访问post数据的页面。请将该链接中的代码添加到您的问题中,好吗?如@andrewsi所写:请将代码添加到您的问题中。我可以发布到HTML页面可以引用的单独PHP页面吗? <?php session_start(); require_once 'php/database.php'; $membership = new login

当我尝试单击登录按钮时,它给出错误:“无法发布到popup.html”

popup.html
如果看不到您的代码,我会说:


您不能发布到html页面。您需要一个可以访问post数据的页面。

请将该链接中的代码添加到您的问题中,好吗?如@andrewsi所写:请将代码添加到您的问题中。我可以发布到HTML页面可以引用的单独PHP页面吗?
<?php
session_start();
require_once 'php/database.php';
$membership = new login();
if($_POST && !empty($_POST['username']) && !empty($_POST['password']) {
    $response = $membership->validate_user($_POST['username'], $_POST['password']);
}
?>
<html>
    <head>
        <link href="ui-style/flat-ui.css" rel="stylesheet" type="text/css"/>
        <link href="ext.css" rel="stylesheet" type="text/css"/>
    <!-- Bootstrap Scripts -->
    <link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
    <script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script> <!-- Bootstrap Scripts -->
    </head>
    <body>
        <div id="login">
        <h1>Login</h1>
        <form method="post" action="">
        <input name="username" type="text" class="span3" value placeholder="Username" id="username"/><br/>
        <input name="password" type="password" class="span3" value placeholder="Password" id="password"/><br/>
        <button class="btn btn-large btn-success" id="login-btn">Login</button>
        </form>
        <?php if(isset($response)) echo $response ?>
        </div>
    </body>
</html>