[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">
<?php echo base_url().'user/login';?>
<?php echo form_open(base_url().'user/login'); ?>
<ul>
<li>
<label>Username</label>
<div>
<?php echo form_input(array('id'=> 'username', 'name'=>'username'));?>
</div>
</li>
<li>
<label>Password</label>
<div>
<?php echo form_password(array('id'=> 'password', 'name'=>'password'));?>
</div>
</li>
<li>
<?php echo form_submit(array('name'=>'submit'), 'Login');?>
</li>
</ul>
<?php echo form_close();?>
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...