Jump to content
Sign in to follow this  
saha19

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

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×