Simple question, but I still cant get my head around different languages being able to communicate with each other in a webpage!
I have a PHP section in my webpage, which links to an SQL database. It retrieves a column of postcode data and stores it in and array called $info.
I then have a javascript function which I want to be able to use the postcodes. How can I access the $info array (PHP) from the JavaScript? Does it have to go into some global array for all to see, or can the javascript access it directly?