0

Have a problem with codeigniter and be trying to sort it for hours, Seems the post vars are not being posted, the form is working I tested it using the action as test.php (print_r()) in the file, and the vars are being posted OK, so its the controller that is not doing as it should.

Controller:

print_r($_POST); //Nothing
print_r($this->input->post()); //Nothing
print_r($this->input->post(NULL, TRUE)); //Nothing
exit;

Maybe its the .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond $1 !^(index\.php|uploads|img|images|frontcss|css|frontjs|js|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]


</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>

Thanks for any help

Rob
  • 302
  • 2
  • 3
  • 15

1 Answers1

0

Your mod_rewrite module doesn't exist. Install mod_rewrite.

Bradley
  • 2,071
  • 2
  • 21
  • 32