Linked Questions
24 questions linked to/from Pass Javascript Array -> PHP
1 vote
1 answer
4k views
I would like to send multiple value using javascript and form [duplicate]
My problem is similar to the link below: similar problem I would like to send multiple values using form and javascript. Instead fixed value like code below: <input type="hidden" name="Id[]" ...
-3 votes
1 answer
266 views
Pass Array of string from Javascript to PHP [duplicate]
I have a Javascript function that saves the value from checked input from a div in an array. And I want to pass this array to PHP. Is it possible? And if it is, how can I do?
-1 votes
2 answers
144 views
Javascript using on php [duplicate]
k, i got that so i checked again and found interesting thing that i was missing: javascript: function my_tmpDropFunc(ddObj, targetObj ,doll) { if(isDropTarget(targetObj, ddObj) || confirmed) {...
3 votes
0 answers
126 views
How do you convert a JS array into a PHP array? [duplicate]
I would like to convert a JS array to a PHP array. I tried to send the value to the PHP page: var seatsReserved = []; function reserve(seat) { seat.setAttribute("class", "reserved"); var ...
-1 votes
1 answer
105 views
How can I convert an array of objects to an associative array in PHP?. To send the array of objects, I am using jquery [duplicate]
This is the array of objects. let arr=[ { 'teacherName':'skg', 'subjectName':'c', 'totalClass':4 }, { 'teacherName':'skg', 'subjectName':'php', ...
2 votes
2 answers
12k views
"Uncaught TypeError: Cannot read property 'clone' of undefined" when adding recurring events to database
For some reason I'm getting ""Uncaught TypeError: Cannot read property 'clone' of undefined" when I'm trying to update the calendar with a recent set of recurring event using $('#calendar')....
1 vote
2 answers
9k views
Passing array from Javascript to PHP via POST
I've looked at several other suggestions on this issue but for some reason my data is not being posted. Here is the relevant section of my code: <input type="button" id="map_submit" value="Map ...
1 vote
4 answers
3k views
How to pass Javascript array to PHP file using AJAX?
I have to pass a Javascript arry to a PHP file while AJAX call. Below is my js array: var myArray = new Array("Saab","Volvo","BMW"); This JS code has to pass JS array to PHP file using AJAX request ...
0 votes
2 answers
8k views
Sending JS array via AJAX to laravel not working
I have a javascript array which I want to send to a controller via an ajax get method. My javascript looks like this: var requestData = JSON.stringify(commentsArray); console.log(...
1 vote
3 answers
4k views
How to pass Array from Javascript to PHP
I have a function which saves an array each time the button is clicked to localStorage.The button will be clicked multiple times and I need to put this Array list into PHP somehow which is on another ...
-1 votes
3 answers
2k views
How can assign javascript array to php array [duplicate]
Possible Duplicate: javascript array converted to a php array? I have an array in javascript, Now i need to assign javascript array to php array i am beginner to scripting language, Can anyone ...
3 votes
4 answers
2k views
PHP Can't Read Array Sent by AJAX [duplicate]
Possible Duplicate: send arrays of data from php to javascript I'm sending an Array with ajax to a php file. The Array is a list of names which should be stored in a database. In order to ...
-2 votes
4 answers
4k views
Javascript POST not working - Sending Javascript array to PHP
I know there a fair few entries on SO and the web on this however I just can't get to work - any help would be appreciated. So i have an array in Javascript which I'm trying to pass on to PHP. I've ...
1 vote
3 answers
428 views
Javascript How to hide a function from my web app (by using php?)
I am making a web app that has typical javascript structure below. I must hide at least a function or some formulas from the public code because someone can save the page on his computer without ...
0 votes
1 answer
436 views
How to access elements from a javascript array for an email sent with PHP/HTML
So I am working on a webpage that generates a javascript array from the date element in html. That array itself works fine, and I am able to print it to the webpage by using a command like this: ...