[eluser]PéturV[/eluser]
Hi, i´ve got a strange problem that I can´t seem to figure out.
So I got this form and if there are any validation errors I redirect back to the form and set the $_POST into flashdata aswell as the error messages.
But if there is much data in the $_POST then the error messages don´t get added to the flashdata.
So basicly my question is... is there a buffer size on the flashdata ?
Code:
function add_process()
{
$results = $this->events_model->addEvent();
if($results->status != 'success')
{
$this->session->set_flashdata('addEventPost',$_POST);
foreach($results->errors as $error)
{
$this->addErrorMessage("Villa",$error);
}
redirect("events/add/location/".$this->input->post('locationID'));
}
else
{
$this->addInfoMessage("OK",$results->message);
redirect("overview");
}
}
If your wondering what addErrorMessage does.
Code:
function addErrorMessage($title, $content = '')
{
$this->messages[] = array( 'title' => $title, 'content' => $content, 'type' => 'error' );
$this->session->set_flashdata( 'messages', $this->messages);
}
Thanks in advance for any input.
Pétur