Welcome Guest, Not a member yet? Register   Sign In
controller not working?
#1

[eluser]Unknown[/eluser]
hi guys. pls help me. i just dont get why its not working.
i have this home.php and i am making this log in form which look like this.
Code:
<!-- login form -->
        
        <div class="grid_4" id="login_form">
        &lt;?php echo base_url().'user/login';?&gt;
        &lt;?php echo form_open(base_url().'user/login'); ?&gt;
        <ul>
                <li>
                    <label>Username</label>
                    <div>
                    &lt;?php echo form_input(array('id'=> 'username', 'name'=>'username'));?&gt;
                    </div>
                </li>
                
                <li>
                    <label>Password</label>
                    <div>
                    &lt;?php echo form_password(array('id'=> 'password', 'name'=>'password'));?&gt;
                    </div>
                </li>
                
                <li>
                &lt;?php echo form_submit(array('name'=>'submit'), 'Login');?&gt;
                </li>
            
            </ul>
        &lt;?php echo form_close();?&gt;

and i have this on the controller.<user.php>
echo "testing..."; dont print anything.
Code:
function login()
    {
        //echo "testing...";

        $this->load->view('v_login', $data);
    }

v_login.php

simply says...hello world....

and i am having an error saying "NOT FOUND"
The requested URL /myproject/user/login was not found on this server.
pls help me guys...thanks in advance...




Theme © iAndrew 2016 - Forum software by © MyBB