refresh the page after clicking the button - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: refresh the page after clicking the button (/showthread.php?tid=21582) Pages:
1
2
|
refresh the page after clicking the button - El Forum - 08-17-2009 [eluser]mrcoder[/eluser] no i dont want the same page to be updated after submitting the form.my page is editminiprofile page after clicking submit button it have to go to preview page.where the uploaded images have to display.iam not getting the images untill i refresh that page.if i used the redirect('loginsuccess',refresh) instead of $this->load->view('loginsuccess', $data,'refresh'); again i have to get the values of editminiprofile page.which will be the duplicate of the code.thats is the problem iam facing. refresh the page after clicking the button - El Forum - 08-17-2009 [eluser]Yorick Peterse[/eluser] [quote author="mrcoder" date="1250510986"]no i dont want the same page to be updated after submitting the form.my page is editminiprofile page after clicking submit button it have to go to preview page.where the uploaded images have to display.iam not getting the images untill i refresh that page.if i used the redirect('loginsuccess',refresh) instead of $this->load->view('loginsuccess', $data,'refresh'); again i have to get the values of editminiprofile page.which will be the duplicate of the code.thats is the problem iam facing.[/quote] If the preview page is different from the editing page you could simply load the preview page's view file with different variables. refresh the page after clicking the button - El Forum - 08-17-2009 [eluser]mrcoder[/eluser] ya i have loaded the preview page’s view file with different variable.but iam not getting the reflected images untill i refresh the browser refresh the page after clicking the button - El Forum - 08-18-2009 [eluser]bluepicaso[/eluser] hello people..a problem im facing is related to the refreshing of the page.i haven't worked on CI before this is my first ever project most of which has to be completed by tomorrow to show to client.. The view submits the value to the controller, the controller passes it to the model. The model saves it into the database.... the controller then redirects to the same view from which it all started... But on refreshing the page the value still gets into the database...i dont want this.. is there a way to clear these post values.... below is the code.... View named admin_insert Code: <?php echo $sub;?> controller named insert Code: <?php Code: <?php |