How to do searching in PHP and AJAX?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.