Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 登录脚本错误密码错误_Php_Html - Fatal编程技术网

Php 登录脚本错误密码错误

Php 登录脚本错误密码错误,php,html,Php,Html,我的登录脚本突然停止工作。 我一直收到“错误的用户名或密码”的信息 这是我的登录页面: <form method="post" action="http://myurl.net/checklogin.php"><div style="text-align: center; margin: 0 auto;"> <h2 style="margin-top: 25px;">Enter your username and password to login:&l

我的登录脚本突然停止工作。 我一直收到“错误的用户名或密码”的信息

这是我的登录页面:

<form method="post" action="http://myurl.net/checklogin.php"><div style="text-align: center; margin: 0 auto;">  

<h2 style="margin-top: 25px;">Enter your username and password to login:</h2>
            <table border="0" cellspacing="0" cellpadding="4" style="margin: 0 auto 0 auto; text-align: left;">
              <tr>                <td style="text-align: right;" valign="middle">Username:</td>
                <td><input name="myusername" type="text" id="myusername" /></td>
              </tr>
              <tr>
                <td style="text-align: right;" valign="middle">Password:</td>
                <td><input name="mypassword" type="password" id="mypassword"></td>
              </tr>
 <tr style="text-align: center;" valign="middle">
                <td colspan="2"><div class="actionMsg">Please change your password after you login.</div></td>
              </tr>
              <tr style="text-align: center;" valign="middle">
                <td colspan="2"><input type="submit" name="Submit" value="Log in" onClick="this.disabled = true; this.value = 'Logging In...'; this.form.submit();">
                </td>
              </tr>
              <tr style="text-align: center;" valign="middle">
                <td colspan="2"><a href="about.html">Having trouble logging in?</a> | <a href="404.html">Forgot your password?</a></td>
              </tr>
            </table></div></form>
我已经签入数据库,我使用的用户名和密码是正确的。。。。而且列名也是正确的

**问题已经解决了,我补充道

session_start();

感谢所有帮助过我的人**

我真的希望这不是来自现场的代码。请在网上查找使用密码的最佳实践。我忘了在html登录页面上设置会话开始,一切正常now@user1121083纯文本密码。。。真的吗?因为这些代码网站被删除了!!!!我知道唯一不好的部分是纯文本密码
session_start();