php - form_open doesn't work (Codeigniter - IIS) -


i have form (login), want call method on controller, when clicking button "sign in" method not executed , returns main screen data entered.

my view (login.php)

                <?php echo form_open('home/loginv'); ?>                 <div class="form-group  m-b-20" >                     <input name="usuario" type="text" class="form-control input-lg" placeholder="name" data-required="true" value="<?php echo set_value('usuario') ?>" ></input>                     <?php echo form_error('usuario'); ?>                 </div>                 <div class="form-group  m-b-20">                     <input name="password" type="password" class="form-control input-lg" placeholder="password" value="<?php echo set_value('password') ?>" ></input>                     <?php echo form_error('password'); ?>                 </div>                  <div class="login-buttons">                     <button type="submit" class="btn btn-danger btn-block btn-lg">log in</button>                 </div>                 <?php echo form_close(); ?> 

my controller, loginv method (home.php)

public function loginv() {      if ($this->form_validation->run('login') == false) {         $this->load->view('home/login');     } else {         $resultado = ...         if ($resultado != null) {             ...             redirect('home/dashboard');         } else {             ...             redirect('home/login');         }     } } 

my web.config

<system.webserver>      <httperrors errormode="detailed" />     <asp scripterrorsenttobrowser="true"/>      <rewrite>     <rules>         <rule name="myrule">             <match url="^(.*)$" />              <conditions>                  <add input="{request_filename}" matchtype="isfile" negate="true" />                  <add input="{request_filename}" matchtype="isdirectory" negate="true" />              </conditions>              <action type="rewrite" url="index.php/{r:1}" appendquerystring="false" />         </rule>     </rules>     </rewrite>  </system.webserver>  <system.web>     <customerrors mode="off"/>     <compilation debug="true"/> </system.web> 

my config.php

... $config['base_url'] = 'http://192.168.0.105/myaplicattion'; ... $config['index_page'] = ''; ... 

i using codeigniter , server iis.

thanks!


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -