Hi all, i'm blocked on a script php/ajax that manage dynamic select.
To let me understand better here the link tutorial:
http://phpgon.com/ajax-php-dynamic-select-lists.html
I take this little code part aboutthe file dynamic-lists.js where i'd like to pass another variable to the get-subcategories.php page and not only the variable idcategory.
function dyl_get_subcategories()
{
var idcategory = document.getElementById("c").value;
var response = ajax_call_server( "get-subcategories.php",
"?c="+idcategory);
eval(response);
}
To notice that function dyl_get_subcategories() is called when there is a change on a form (example.php) ...when you select the first "select"to populate the second. I need to make pass other info.
The point is that i'm not experienced with javascript. In this js file I need to pass a php variable and I don't know how to do :-s
Thanks all.
Shella