[syntax=php]<?php
$array = array('s1' => 'name','s2' => 'name2'); // etc
$arrayJSON = json_encode($array);
?>[/syntax]
I need help finding a way to call a PHP page with 1 parameter using AJAX, and return a JSON array back, and from there I need to be able to parse it using javascript / jquery.
The basis behind this, is that one option is chosen, and the next one loads without reloading the page (like, from a checkbox or dropdown list etc)
Thanks
![Smile :)](./images/smilies/icon_e_smile.gif)