Welcome Guest, Not a member yet? Register   Sign In
[SOVED] POST 404 - 403 error
#7

[eluser]d1a8lo24[/eluser]
[quote author="sHiRoKKo1337" date="1304207053"]I think this error is caused by your .htaccess or webserver in general. CI will usually return HTTP 500 Internal Server Error, but what you get is 403 Forbidden.[/quote]

Well all server errors are by the server most 500 errors is a misconfiguration on your htaccess or in a configuration server file.

as far as the 403 i know what it is the problem is, is why does it only happens when the index.php is not present.

now the strange thing is that on other parts of my app the forms work fine which is strange.

This is my controller
Quote:class Testing extends CI_Controller {



function __construct()

{

parent::__construct();


$this->output->enable_profiler(TRUE);

}



function index()

{
$sections = array(
'config' => FALSE,
'queries' => FALSE
);

$this->output->set_profiler_sections($sections);

$this->load->view('testing');
}

}

this is my view
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;Untitled Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>No index.php typing the following the submission will fail <strong>&gt;&gt; &gt;&lt; &lt;&gt;&lt;&gt;</strong><br />&lt;?php echo form_open('testing'); ?&gt;
&lt;textarea name="bio" cols="50" rows="5" id="bio"&gt;&lt;/textarea><br />
&lt;input name="submit" type="submit" value="Submit" /&gt;
&lt;?php echo form_close(); ?&gt;</td>
    <td>With index.php no problems<br />&lt;?php echo form_open('index.php/testing'); ?&gt;
&lt;textarea name="bio" cols="50" rows="5" id="bio"&gt;&lt;/textarea><br />
&lt;input name="submit" type="submit" value="Submit" /&gt;
&lt;?php echo form_close(); ?&gt;</td>
  </tr>
</table>
<p></p>
Post Result: &lt;?php echo $this->input->post('bio'); ?&gt;

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


Messages In This Thread
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 05:17 AM
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 08:16 AM
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 12:31 PM
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 12:41 PM
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 12:44 PM
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 01:08 PM
[SOVED] POST 404 - 403 error - by El Forum - 04-30-2011, 01:14 PM
[SOVED] POST 404 - 403 error - by El Forum - 05-03-2011, 05:06 PM
[SOVED] POST 404 - 403 error - by El Forum - 05-13-2011, 02:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB