Welcome Guest, Not a member yet? Register   Sign In
Flash Data Without Redirect
#1

[eluser]RaGe10940[/eluser]
I am trying to send messages back to the users if a account does not exist. I have achieved this, however the data that the user typed in is gone and I spoke with the clients and they explicitly do not want that.

They want their information they typed in to save and with the code below :

Code:
$this->session->set_flashdata('emailview', 'Student Does Not Exist');
      redirect('emailsystem_controller/emailview', 'location');

it does not work...

I have tried this :

Code:
$this->session->set_flashdata('emailview', 'Student Does Not Exist');
     $this->emailview();

and that works only after I hit submit again (the next hop).

this is the code for emailview();

Code:
function emailview() {
$data['main_content'] = 'emailsystem/emails_view';
$this->load->view('includes/no_js/template', $data);
    }

So pretty much :

1) I need the flash data to be sent back with an error if the account does not exist.
2) I need the values the user inputted to not be reset

Is this possible?


Messages In This Thread
Flash Data Without Redirect - by El Forum - 03-27-2013, 06:51 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 07:29 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 07:32 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 09:17 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 09:28 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 09:31 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 11:21 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 11:25 AM
Flash Data Without Redirect - by El Forum - 03-27-2013, 01:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB