Welcome Guest, Not a member yet? Register   Sign In
'Object Not Found' - Beginner Issue
#11

[eluser]Butters[/eluser]
[quote author="InsiteFX" date="1303881021"]I do not see your form_open!
Code:
<div>
    &lt;?php echo form_open('user/login');?&gt;
</div>
<div>
&lt;? echo form_input(array('id' => 'username', 'name' => 'username')); ?&gt;
</div>
</li>
<li><label>Password</label>
<div>
&lt;? echo form_password(array('id' => 'password', 'name' => 'password')); ?&gt;
</div></li>
<li>&lt;?php echo form_submit(array('name' => 'submit'), 'Login'); ?&gt;</li>
<li>&lt;? echo validation_errors(); ?&gt;</li>
</ul>

&lt;?php echo form_close();  ?&gt;
</div>

InsiteFX[/quote]

Sorry again for my poor C&P'ing skills, but I do have the form open, I just copied from under the wrong div. My full form:
Code:
<div id="login_form">
&lt;?php echo form_open(base_url() . 'user/login'); ?&gt;
<ul>
<li>
<label>Username</label>
<div>
&lt;? echo form_input(array('id' => 'username', 'name' => 'username')); ?&gt;
</div>
</li>
<li><label>Password</label>
<div>
&lt;? echo form_password(array('id' => 'password', 'name' => 'password')); ?&gt;
</div></li>
<li>&lt;?php echo form_submit(array('name' => 'submit'), 'Login'); ?&gt;</li>
<li>&lt;? echo validation_errors(); ?&gt;</li>
</ul>

&lt;?php echo form_close();  ?&gt;
</div>
I've tried it both with and without the baseurl() call but no difference Sad
#12

[eluser]Butters[/eluser]
I've solved this issue. Instead of 'user/login' I should have had 'index.php/user/login' ! D'oh.. thanks folks.




Theme © iAndrew 2016 - Forum software by © MyBB