How can I convert a javascript array to a php array??
I have a javascript array which I want to put the values into a php array please help me?
How would I go about doing this?
How can I convert a javascript array to a php array?? I have a javascript array which I want to put the values into a php array please help me? How would I go about doing this? |
|||||||||||||
|
You would typically convert the array to a JSON string with | |||
|
here is the (very) basic idea. javascript
php
| ||||
|
AJAX it. Just like anything else you want to send to the server without a full page reload. | |||
|
You could convert the javascript to a PHP object too...
Requires that your javascript be converted to json. | |||
|