Welcome Guest, Not a member yet? Register   Sign In
The Easiest Authentication Library for CodeIgniter just got easier.

[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">
            &lt;form method="POST"&gt;
            Username/Email:<br />
            &lt;input type="text" name="username" value="&lt;?php echo set_value('username'); ?&gt;" size="50" class="form" /&gt;&lt;?php echo form_error('username'); ?&gt;<br /><br />
            Password:<br />
            &lt;input type="password" name="password" value="&lt;?php echo set_value('password'); ?&gt;" size="50" class="form" /&gt;&lt;?php echo form_error('password'); ?&gt;<br /><br />
            &lt;input type="submit" value="Login" name="login" /&gt;
            &lt;/form&gt;
    </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?


Messages In This Thread
The Easiest Authentication Library for CodeIgniter just got easier. - by El Forum - 08-18-2009, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB