I have this code :-
<form action="<?php echo base_url();?>login/process" method="post" name="process">
<h2>User Login</h2>
<br />
<?php if(! is_null($msg)) echo $msg;?>
<label for="username">Username</label>
<input type="text" name='username' id='username' size="25" /><br />
<label for="password">Password</label>
<input type="password" name="password" id='password' size="25" /><br />
<input type="Submit" value="Login" />
</form>
But it not works.
when i remove this link
<form action="<?php echo base_url();?>login/process" method="post" name="process">
after that it works.
Now my Question is how to use form URL inside CodeIgniter.
I know we can also do somehting like that :
<?=form_open('main/index/')?>
but I do not want to change my code right now.