saha19 0 Report post Posted May 11, 2015 when i select some thing in bill.php ,it ajax call and get value from get user.php then it display content on bill.php the page but how could i hold those value in a variable in bill.php page for further use in php bill.phpgetuser.php Share this post Link to post Share on other sites
Ingolme 938 Report post Posted May 11, 2015 Your question has already been answered in this thread: http://w3schools.invisionzone.com/index.php?showtopic=53226 Share this post Link to post Share on other sites
saha19 0 Report post Posted May 12, 2015 Your question has already been answered in this thread: http://w3schools.invisionzone.com/index.php?showtopic=53226 what u told ,its not working for my code ri8,that why i post my code again Share this post Link to post Share on other sites
Ingolme 938 Report post Posted May 12, 2015 Strip your code down to the basics. Inside the onreadystatechange event handler, write globalVariable = xmlhttp.responseText; The contents of that variable will only be available after the request has finished, your other functions may be running too early. Copy the relevant parts of your code into the post so we don't have to download the file. Share this post Link to post Share on other sites