[eluser]Ray Julich[/eluser]
I have an application with a form. Let's call it form.php. I submit the form to form.php, I verify it, I create a few flashdata variables and then redirect to another page to be processed. I am getting an error when I try to redirect the page.
Here is the code once I've submitted the form:
Code:
$this->session->set_flashdata('field1',$this->input->post('field1'));
$this->session->set_flashdata('field2',$this->input->post('field2'));
$this->session->set_flashdata('field3',$this->input->post('field3');
$this->session->set_flashdata('field4',$this->input->post('field4');
//Redirect the user
redirect('next_page', 'location');
Right now when I submit the form, I get a "The website cannot display the page" error page in my browser. The error is on the form.php, not on the redirect page. I have other pages in my application that use redirects and they work fine, but this is the only page in my application that uses flashdata. I did want to point out that I started use https in my application a few weeks ago and it seemed to have been working before I made that change. I don't know if it's related or not.