How to update session array via ajax?
问题 I'm passing user input, which is just quantity and product code in this case to the php script to store into session array via ajax. I expect, each time user clicks submit and the ajax call is made, the quantity and product code will be added into session array. But now what happen is, each time it updates existing data in the session. So only one pair of data exist. This is my ajax script: <script> <!--display form submission result--> var param; var param2; var i; function sendToCart(param,