Answer the question
In order to leave comments, you need to log in
How to add an array to a session?
Hello. Tell me where to go next?
There is a form
<form id="formCart" class="formCart" action="javascript:void(null);">
<input class="id" type="hidden" name="hitId" value="1" />
<input class="name" type="hidden" name="hitName" value="<?=$element['NAME'];?>" />
<input class="price" type="hidden" name="hitPrice" value="<?=$element['PRICE'];?>" />
<input class="basket" type="submit" name="hitAdd" value="В корзину" />
</form>
Answer the question
In order to leave comments, you need to log in
Xs .. you store an array of purchased goods in cookies .. you parse a line of cookies .. IMHO in this direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question