0

Possible Duplicate:
keep browser from resending post variables

When I try to load a view after some processing is done, the URL doesn't change and If user accidentally refresh the page he will resend the request and it will be processed all again.

I load a view and I pass some data to it. So I can't use redirect. How can I solve this problem?

    $data['message'] = 'value1';
    $data['another_message'] = 'value2';
    $this->load->view('my_view', $data); 
Community
  • 1
  • 1
Zim3r
  • 580
  • 2
  • 14
  • 36

1 Answers1

1

You need to use the POST/REDIRECT/GET pattern for this.

John Conde
  • 217,595
  • 99
  • 455
  • 496
  • Thanks but I still can't use this. first of all because I want to load a view instead of using redirect. – Zim3r Jan 19 '13 at 17:21