I am trying to get data back from a PHP file assigned with GET parameters in an AJAX request:
xmlhttp.open(“GET”,”getMyData.php?name=”+name+”&email=”+email,true);
Can I call the getMyData.php like that, or it has to be in the root of the project? Now is in the same directory as the javascript file.
Also, if possible, a small example of how to insert the returned data into an input field.
Thanks a bunch!
Here the example
Look here get more information and example