Home  >  Q&A  >  body text

Why does 404 not found appear after execution and logincheck.php cannot be redirected?

<!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>


吥离吥弃吥离吥弃2389 days ago1640

reply all(5)I'll reply

  • 好想睡懒觉、

    好想睡懒觉、2018-03-07 11:04:00

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

    reply
    0
  • 段旭涛

    段旭涛2018-03-07 10:56:17

    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

    reply
    0
  • 吥离吥弃

    吥离吥弃2018-03-07 10:14:57

    It’s in the same directory.

    reply
    0
  • 徐金龙

    徐金龙2018-03-07 09:35:19

    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.

    reply
    0
  • **推广网

    **推广网2018-03-07 09:27:39

    <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


    reply
    0
  • Cancelreply