Welcome Guest, Not a member yet? Register   Sign In
Repopulating text field values after re-calling the same controller
#1

[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





Theme © iAndrew 2016 - Forum software by © MyBB