I just looked at your other post and noticed that you named your controller "verify_login.php" but your class is named "VerifyLogin". In Codeigniter your class needs to be named the same as your file, just with capital letters. In order for that page to work correctly you should either rename your controller file to "verifyLogin.php" or rename your class to "Verify_Login".
CodeIgniter Login System not working 404 error bad request [duplicate]
-
10-03-2022 - |
题
Using CodeIgniter to build a simple log in system.
I am getting this error when I try to submit my form data
404 Page Not Found The page you requested was not found.
I've no idea why! This is my form:
<?php echo form_open('VerifyLogin/index'); ?>
<label for="username">Username:</label>
<input type="text" size="20" id="username" name="username"/>
<br/>
<label for="password">Password:</label>
<input type="password" size="20" id="passowrd" name="password"/>
<br/>
<input type="submit" value="Login"/></form>
This is the form action ->
http://localhost/LoginTut/index.php/VerifyLogin/index
The user should be brought to a new page. I don't know why this issue is happening!! Any ideas?
解决方案
不隶属于 StackOverflow