How to send javascript array to php page by ajax and how does php page acess array element by element ?
-
-
Answer:
one way would be to populate a hidden form element with the array as string and submit it to your php page using post method, if your array's large. forming a xml is another way. you can also use json (check out json.org) to send, back and forth, pairs of key-values.
Jijgee at Yahoo! Answers Visit the source
Other answers
one way would be to populate a hidden form element with the array as string and submit it to your php page using post method, if your array's large. forming a xml is another way. you can also use json (check out json.org) to send, back and forth, pairs of key-values.
ali
Related Q & A:
- How To Send Free Sms With Php Api?Best solution by Stack Overflow
- How to change javascript values to php?Best solution by stackoverflow.com
- How to get JavaScript value in PHP?Best solution by Stack Overflow
- How to get Javascript array length?Best solution by Stack Overflow
- How to call Javascript function in PHP?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.