You could use JSON.stringify(array)
to encode your array in JavaScript, and then use $array=json_decode($_POST['jsondata']);
in your PHP script to retrieve it.
More Related Contents:
- How to inject javascript code that uses php variables into php page
- How to get the jQuery $.ajax error response text?
- Passing JavaScript array to PHP through jQuery $.ajax
- Send array with Ajax to PHP script
- How to execute ajax function onbeforeunload?
- Creating jQuery AJAX requests to a PHP function
- How to prevent the “Confirm Form Resubmission” dialog?
- jQuery AJAX form using mail() PHP script sends email, but POST data from HTML form is undefined
- jQuery Mobile: How to correctly submit form data
- Best way to transfer an array between PHP and Javascript [duplicate]
- Passing Javascript Variable to PHP using Ajax
- How to access PHP session variables from jQuery function in a .js file?
- Jquery – Uncaught TypeError: Cannot use ‘in’ operator to search for ‘324’ in
- How can we open a link in private browsing mode
- Pass data from jQuery to PHP for an ajax post
- Show/hide fields depending on select value
- How to pass an array using PHP & Ajax to Javascript?
- Javascript function post and call php script
- How to add anchor tag to a URL from text input
- How to rotate image and save the image
- Cross Domain Ajax Request with JQuery/PHP
- How to get exact browser name and version?
- Removing black borders 4:3 on youtube thumbnails
- Sending/Displaying a base64 encoded Image
- What is the JS equivalent to the PHP function number_format?
- show progressbar while loading pages using jquery ajax in single page website
- Run php function inside jQuery click
- jQuery Multiple Forms Submit
- passing php string with multiple lines to a javascript function/variable
- How to send the values of an array of checkboxes through Ajax using jQuery?