On Aug 6, 12:41 pm, mohsin <[EMAIL PROTECTED]> wrote:
> how to pass multiple value from php to $.get in jQuery. i need to pass
> varibles from php to ajax file ...buti cann't find no way to do it.

You can't pass variables from PHP to JavaScript. You can pass them
from JS to PHP by making a GET or POST request, which fetches some
arbitrary content (as a SINGLE result). You can use JSON results to
simulate the effect of passing multiple values to JS:

http://docs.jquery.com/Ajax#.24.getJSON.28_url.2C_params.2C_callback_.29

simply package your multiple PHP results into a JSON object and fetch
that from your JS code.

Reply via email to