You need to echo your array in php in json format. To do this you need a json class in your php code.
Here is to get you started: http://www.google.com/search?q=json+php+class Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 1:58 AM, emmj...@gmail.com <emmj...@gmail.com> wrote: > > How would I go about getting an array from a php script. As I > understand it the data returned to $.post is only things that are > echoed in the php file. I've tried using return $array; in php but it > doesn't work. > > Any help would be greatly appreciated. >