71
rated 0 times
[
73]
[
2]
/ answers: 1 / hits: 20963
/ 12 Years ago, sun, may 6, 2012, 12:00:00
i have this ajax code
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById('addIO').innerHTML+=xmlhttp.responseText;
}
}
xmlhttp.open(GET,http://localhost/Mar7ba/Ontology/getRelatedConceptsAndRelations/3/TRUE,true);
xmlhttp.send();
and I have a php array
$cars=array(Saab,Volvo,BMW,Toyota);
how can i send the array $cars to my javascript ?
More From » php