doucheng7808 2017-04-24 08:22
浏览 200

在PHP注册表单上提交后的空白页面

I have been close to finding my error but I can't... please help me with the problem I have with my PHP signup form -

I have signup page, index page, login page and logout page and I set redirect statement as below;

$error = array();
$error[] = "each time false is returned print some message here";

        if (count($error) === 0)
    {
      header('location: ./login.php');

(I wish I could paste the whole page code and I don't even know where the problem really is...)

When I click submit button on signup form, it goes to a blank page and when there is an error it shows on the blank screen but when the signup is successful it doesn't show anything and stay on the blank page.

My HTML is like this

<h3>Please enter username and password to sign up</h3>
<form action="./signup.php" method="post">
Username: <input type="text" name="username" placeholder="User name"><br>
Password: <input type="password" name="password" placeholder="Password"><br>
<input type="submit" value="Sign up">
</form>

Can you tell what could be the problem? Thanks so much for the help in advance...

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
    • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
    • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
    • ¥15 如何在炒股软件中,爬到我想看的日k线
    • ¥15 seatunnel 怎么配置Elasticsearch
    • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
    • ¥15 (标签-MATLAB|关键词-多址)
    • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
    • ¥500 52810做蓝牙接受端
    • ¥15 基于PLC的三轴机械手程序