Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8659751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:05:07+00:00 2026-06-12T16:05:07+00:00

I am new to codeigniter. While submitting the form i am getting 404 error

  • 0

I am new to codeigniter. While submitting the form i am getting 404 error page not found.Actually without entering the username and password it should work the valudations. Here is the code.

login.php in controller

public function verifyuser()
        {

          $this->load->library('form_validation');
          $this->form_validation->set_rules('username','username','required');
          $this->form_validation->set_rules('password','password','required');

          if($this->form_validation->run() == FALSE){
            $this->load->view('login/login');
        }else{
        $this->load->model('login/validate');
        }
        }

*login/login.php*

<?php echo form_open('verifyuser'); ?>
    <!--  start login-inner -->
    <div id="login-inner">
        <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th>Username</th>
            <td><input type="text" name="username"  class="login-inp" /></td>
        </tr>
        <tr>
            <th>Password</th>
            <td><input type="password" name="password" value="************"  onfocus="this.value=''" class="login-inp" /></td>
        </tr>
        <tr>
            <th></th>
            <td valign="top"><input type="checkbox" class="checkbox-size" id="login-check" /><label for="login-check">Remember me</label></td>
        </tr>
        <tr>
            <th></th>
            <td><input type="submit" value="submit" class="submit-login"  /></td>
        </tr>
        </table>
    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:05:08+00:00Added an answer on June 12, 2026 at 4:05 pm

    If you’re intending to submit to the same controller you’re on, you don’t need to specify anything in form_open:

    <?php echo form_open(); ?>
    ...
    <?php echo form_close(); ?>
    

    This should be enough. CI will automatically use the current controller/method when nothing is specified. Furthermore, the reason you’re getting the error is because you’re telling form_open that you want to load the controller/method verifyuser/index.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm really new to CodeIgniter and am having some trouble getting started. I see
I am new to PHP Codeigniter framework. I am designing a page in which
I just started using CodeIgniter after using Zend for a while. My new site
I am new to Codeigniter and PHP.. while doing some operations i have some
I am new to codeigniter where I tried form validation. Here is my View
I am still new into Codeigniter framework. Today I read about Database Caching http://codeigniter.com/user_guide/database/caching.html
I'm new to CodeIgniter and have come into an issue with the insertion of
I'm new in CodeIgniter and read user guide from website. Using pagination class, pagination
I am new in codeigniter, even in PHP. I want to upload a zipped
I'm new to codeigniter this is my case: I have a homepage with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.