Linked Questions
21 questions linked to/from Send array with Ajax to PHP script
0 votes
2 answers
200 views
Multidimensional Javascript Array to Php Page [duplicate]
I have 2 pages. berechnungseingabe.php where I generate a Multidimensional Javascript Array Array[19] 3: Array[0] 7: Array[0] 11: Array[0] Anzahl: "1" Driving: 2380 Index: "13" ...
8 votes
2 answers
58k views
Posting Array to PHP using ajax
I'm having issues posting an Array to a PHP page using AJAX. I've been using this question as guidance, but for whatever reason I still can't get it to work. From what I can tell by using print_r($...
0 votes
3 answers
13k views
Pass array through jquery ajax request?
Trying to pass an array to a php page using an ajax request. The current response is ction Array() { [native code] } as opposed to the actual array contents (which im positive is not empty). Here my ...
1 vote
1 answer
2k views
$_POST variable empty after AJAX Request
I've seen a lot of posts on this issue, but many of them are at least 3 years old, and nothing seemed to resolve my issue. I'm hoping someone can help. I created an array of strings that are paths to ...
0 votes
2 answers
3k views
How to access Javascript array in PHP file and printing array values in Javascript
I have first PHP file where I have form and it's action is directing me to next php file. The code snippet is as below: <form name="drugForm" action="drug_form2.php" onsubmit="return validateForm(...
1 vote
2 answers
2k views
Send array with Ajax to PHP script in wordpress
I'm trying to send an array from a JS file to a PHP file in the server but when I try to use the array in php, I got nothing. This is my function in JS: var sortOrder = []; var request = function() {...
0 votes
2 answers
2k views
Submit Form Array Via AJAX
I have a form which I would like to submit via Ajax, however, part of it contains an array. I am having difficulty passing this array via Ajax. An example of my Ajax is below, where I would usually ...
-3 votes
1 answer
2k views
Ajax call to PHP action/function with array as data (in wordpress)
I'm trying to push an array from jquery to a php function and I'm out of options to make it work. I've tried multiple options; $_request, $_post, with JSON.stringify, without JSON.stringify, ... But I ...
0 votes
1 answer
367 views
Cannot send array to php via AJAX?
Well I followed this question, but cannot send array to php it returns me always empty: JS: values = []; values['mpsRegnomer'] = $('#mpsRegnomer').val(); values['...
1 vote
2 answers
591 views
How to receive Ajax urlencode in PHP
I need help with this problem, please help me. I'm trying to do Ajax urlencode to PHP, but PHP doesn't show me the POST content like does when HTML send directly to PHP. I'm using this code in Ajax ...
0 votes
0 answers
471 views
Javascript (AJAX) send array to PHP not working
I'm trying to send an array from Javascript to PHP. function wishlist_save(arr){ $.ajax({ type: "POST", url: "from.php?type=customers", data: {info: JSON.stringify(arr) }, ...
0 votes
1 answer
196 views
How to send JavaScript array using AJAX to PHP?
I want to send a JavaScript array to the server when a user clicks on a button. My current code is as follows, but it does not work, could someone help me with this? HTML <? $arrs = {include ...
-6 votes
4 answers
592 views
how to pass array in ajax call using php
I have an array like this Array ( [0] => 131 [1] => 103 [2] => 21 [3] => 94 [4] => 107 [5] => 130 [6] => 92 [7] => 128 [8] => ...
0 votes
1 answer
136 views
Jquery array cannot access in php script Error: Undefined Index
I am sending a javascript array by using jquery to a php script. In ajax I have a myarr variable but this variable can't be accessed in php. Error is : Undefined index myarr Please Please help me....
0 votes
2 answers
85 views
Sending an array from jquery to PHP and back
I have a list of options (categories) of projects that the user can see. By selecting the categories, the div below should update with the lists of projects matching said categories. Despite using ...