Why does 404 not found appear after execution and logincheck.php cannot be redirected?
吥离吥弃
吥离吥弃 2018-03-06 21:28:10
0
5
1736
<!DOCTYPE html>
<html>
 <head>
 <title>php.cn</title>
 <meta charset="utf-8" />
    <style>
         .box{
             width:240px;
             height:90px;
             background:#f0f0f0;
         }
    </style>
 </head>
 <body>
     <!-- 登录界面  login.php-->
     <div class="box">
         <form action="logincheck.php" method="post"> 
             <table>
                <tr>
                    <td align="right">用户名:</td>
                    <td><input type="text" name="username" value="请输入用户名" maxLength="6"/></td>
                </tr>
                <tr>
                    <td align="right">密 码:</td>
                    <td><input type="password" name="userpwd"  maxLength="6"/></td>
                </tr>
                <tr>
                    <td><input type="submit" name="submit" value="登陆" /> </td>
                    <td><a href="register.php">注册</a></td>
                </tr>
             </table>
         </form>
     <div>
 </body>
</html>


吥离吥弃
吥离吥弃

reply all(5)
好想睡懒觉、

The path is incorrect, please refer to: http://www.zhao.demo/index.php/admins/Home/logincheck

段旭涛

Look at the URL of the page showing 404
There are two pages that may jump to this page
1. Click login and jumphttp://XXX/logincheck.php
2. Click to register and jump to http://XXX/register.php

吥离吥弃

It’s in the same directory.

徐金龙

It should be that the path is wrong. If your html and php files are in the same directory, it will be fine if you write this way. If they are not in the same directory, there will be a problem.

威骏(丁合超)

<form action="logincheck.php" method="post">

It should be the wrong path: action="/logincheck.php" or action="./logincheck.php"


Professional website building: Huanggang website building


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template