Welcome Guest, Not a member yet? Register   Sign In
Problem with arrays
#9

[eluser]mddd[/eluser]
So first you call index(). It shows a form. Then you call preview() with your form information. It shows some information and puts something in $this->products. Then you call create() with some form information. But when you call create(), $this->products is empty! Variables are not stored between requests! If you want something in $this->products in create(), you have to put it there! Now there is nothing, so it shows nothing.


Messages In This Thread
Problem with arrays - by El Forum - 07-23-2010, 12:18 AM
Problem with arrays - by El Forum - 07-23-2010, 01:13 AM
Problem with arrays - by El Forum - 07-23-2010, 01:26 AM
Problem with arrays - by El Forum - 07-23-2010, 01:33 AM
Problem with arrays - by El Forum - 07-23-2010, 01:36 AM
Problem with arrays - by El Forum - 07-23-2010, 02:01 AM
Problem with arrays - by El Forum - 07-23-2010, 02:06 AM
Problem with arrays - by El Forum - 07-23-2010, 02:23 AM
Problem with arrays - by El Forum - 07-23-2010, 02:32 AM
Problem with arrays - by El Forum - 07-23-2010, 02:45 AM
Problem with arrays - by El Forum - 07-23-2010, 03:01 AM
Problem with arrays - by El Forum - 07-23-2010, 03:03 AM
Problem with arrays - by El Forum - 07-23-2010, 03:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB