Hi guys!
How can I create an array that retains values dynamically every time i click the submit button?
The condition should be each time I select a product from a list and click submit, $cart must retain all values into it for use at another page.
i tried this code:
if(isset($_POST['submit']))
{
$cart = array();
$cart[] = $item_code.":".$item_qty;
}
from a <form action="$_SERVER['PHP_SELF']" method="post">
but each time i click "submit" $cart displays a new value and looses the old values previously entered.
thanks.