[eluser]Zack Kitzmiller[/eluser]
[quote author="REPOLHO" date="1248401876"]Hi.... im new in CI and auth library... not so much in PHP, but i have a dummy question.. how can i create my own form, reading the code, i found the form html as
Code:
<div id="login">
<h2>Login</h2>
<div class="box">
<form method="POST">
Username/Email:<br />
<input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" class="form" /><?php echo form_error('username'); ?><br /><br />
Password:<br />
<input type="password" name="password" value="<?php echo set_value('password'); ?>" size="50" class="form" /><?php echo form_error('password'); ?><br /><br />
<input type="submit" value="Login" name="login" />
</form>
</div>
</div>
Normally i would expect an "action" for the form...
Sorry but im lost, how can i create my own login and register form (it will have a customize database customized)
Tkz until now.
Roberto[/quote]
That form posts to itself. So if the controller method calling that view is called "auth/login" when the user clicks 'Submit' the action will be the controller that called the view. Make sense?