<!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>
好想睡懒觉、2018-03-07 11:04:00
The path is incorrect, please refer to: http://www.zhao.demo/index.php/admins/Home/logincheck
段旭涛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
徐金龙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.
**推广网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