[eluser]d1a8lo24[/eluser]
I just happen to run into this problem today i didn't have this problem in the past. I don't know if its a CI problem, server, or an htaccess problem.
I'm running CI 2.0.2 by the way I have only been able to replicate this problem on my live server and only with CI's framework, on my own windows wamp server everything works fine.
Here is the problem whenever i submit a form through post, the data is not submitted. I found this when I was working on an application that i'm building. it seems that the following character typed twice is the problem
>> and i don't know why.
I turn firebug on to see what was happening and it says that on post there is a 403 error funny thing is that in other forms in the app i don't have this problem. by the way the character will throw the 403 error if is typed in different ways
>>, >< <><> so HTML tags that i want to allow will throw this error.
Also this only happens when the index.php is removed through the htaccess. If it is present on the URI everything works fine.
I have a simple htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
The form
Code:
<?php echo $this->input->post('bio'); ?>
<?php echo form_open('testing'); ?>
<textarea name="bio" cols="50" rows="5" id="bio"></textarea><br />
<input name="submit" type="submit" value="Submit" />
<?php echo form_close(); ?>
If anyone can help me figure this out i will really appreciated.