saha19 Posted May 11, 2015 Share 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 Link to comment Share on other sites More sharing options...
Ingolme Posted May 11, 2015 Share Posted May 11, 2015 Your question has already been answered in this thread: http://w3schools.invisionzone.com/index.php?showtopic=53226 Link to comment Share on other sites More sharing options...
saha19 Posted May 12, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Ingolme Posted May 12, 2015 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now