CodeIgniter Forums
Repopulating text field values after re-calling the same controller - 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: Repopulating text field values after re-calling the same controller (/showthread.php?tid=47821)



Repopulating text field values after re-calling the same controller - El Forum - 12-23-2011

[eluser]Vaibhav132[/eluser]
I am working on creating deal functionality(creating deal like selling bikes, watches etc)
Okay i have this problem...

There are view pages called "create_deal.php" and "preview_deal.php"

The create_deal.php has a SUBMIT BUTTON called "PREVIEW DEAL".

After clicking on PREVIEW DEAL, user is forwarded to "preview_deal.php"

The "preview_deal.php" has TWO BUTTONS 1)CREATE DEAL 2)EDIT DEAL

Okay the problem

WHEN THE USER CLICKS ON "EDIT DEAL" button he is redirected to "create controller" which loads "create_deal.php".

So here i am not able to repopulate all the post values, the $_POST array is empty, and set_value() doesn't work either.

Need some suggestion on this.Let me know if you need more clarification.

Thanx Smile