Welcome Guest, Not a member yet? Register   Sign In
Problems with Form_Open
#3

[eluser]Diego CODU[/eluser]
I checked all that.
I think it gets easier to understand with the code:

My controller called (login) is only this:
Code:
class Login extends Controller {

    function Login()
    {
        parent::Controller();        
    }
    
    function index()
    {        
        $this->load->view('painel/_login');
        print_r($_POST);
        }
}

My view "_login.php" (inside the directory "view/painel/"):
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
    
    &lt;title&gt;PortalCOT.com&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;

<h2>Login - Painel</h2>


&lt;?php echo form_open("login");?&gt;
    
    <fieldset>
    
        <legend>Dados de acesso</legend>
        
        <h5>Login:</h5>
        &lt;input type="text" name="login" /&gt;
        
        <h5>Senha:</h5>
        &lt;input type="password" name="senha" /&gt;
        
        &lt;input type="submit" value="Enviar" name="form_login" /&gt;
    
    </fieldset>
    

&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
Problems with Form_Open - by El Forum - 03-31-2010, 12:59 PM
Problems with Form_Open - by El Forum - 03-31-2010, 01:06 PM
Problems with Form_Open - by El Forum - 03-31-2010, 01:28 PM
Problems with Form_Open - by El Forum - 03-31-2010, 01:32 PM
Problems with Form_Open - by El Forum - 03-31-2010, 02:28 PM
Problems with Form_Open - by El Forum - 03-31-2010, 03:30 PM
Problems with Form_Open - by El Forum - 04-01-2010, 11:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB