I want to show user live result of some calculations. It includes solving 10 different problems and i want to show user thru ajax that problem number (1,2,3..) is being solved so that user feel easy. I have coded ajax file and everything is ok and working. But problem is that i am not able to find the way that how to put ajax file in middle of first php (from where after submitting form calculations started) file and second php (where all results will be shown) file. Please help me that i can redirect user to ajax file after submission of form from first php and then after calculations are completed it would be redirected to second php file (from middle ajax file). I will be thankful to you. :)