Skip to content
Advertisement

How can send entire php array values on button click?

I want to send entire array information by the button click event, basically I store all information in the session send it on button, the problem is that just one value of array sent from session array not the whole array. I don’t know how can I do it? When I print the $WhatsApp_info it print complete array which item store in session but when I send on button one item information are sent.

JavaScript

Advertisement

Answer

Make sure you don’t overwrite your array in your loop. Create a new entry using the empty bracket methode.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement