Welcome Guest, Not a member yet? Register   Sign In
validation not working
#4

[eluser]pickupman[/eluser]
You can have Codeigniter in a subfolder. You will need to have .htaccess in your /CodeIgniter folder to point to index.php since you have removed it from your urls.
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Now for your form based on the link you show, you should have this in your view
Code:
echo form_open('form');

In your controller
Code:
class Form extends Controller{
  function __construct(){
    parent::Controller(); // or you can use parent::__construct();
  }

  function index(){
     $this->load->library('form_validation');

     if($this->form_validation->run()){
          //Do stuff
     }
     $this->load->view('your_view', $data);
  }
}


Messages In This Thread
validation not working - by El Forum - 11-21-2010, 10:06 PM
validation not working - by El Forum - 11-21-2010, 10:39 PM
validation not working - by El Forum - 11-21-2010, 10:45 PM
validation not working - by El Forum - 11-21-2010, 11:15 PM
validation not working - by El Forum - 11-21-2010, 11:41 PM
validation not working - by El Forum - 11-21-2010, 11:49 PM
validation not working - by El Forum - 11-22-2010, 08:30 AM
validation not working - by El Forum - 11-23-2010, 01:32 AM
validation not working - by El Forum - 11-23-2010, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB