justAnoob Posted December 11, 2009 Share Posted December 11, 2009 Lets say I have a button on a page. That button runs a script which takes about 5 seconds to complete. At the end of the script, the user is still on that same page after a refresh of the browser. Lets say this is my session var below $_SESSION['waiting'] = "Please be patient"; Is there a way echo that session on the page while the script is running, using PHP? Quote Link to comment Share on other sites More sharing options...
.josh Posted December 11, 2009 Share Posted December 11, 2009 you can use ob_flush. Alternatively, you can make your request via ajax and display your message via javascript. Quote Link to comment Share on other sites More sharing options...
justAnoob Posted December 11, 2009 Author Share Posted December 11, 2009 Actually, I came up with another idea, but right now it is only working in FF and not IE. I'm using an animated gif, havig it display when the submit button is clicked, the animation works great in FF, but in IE it just shows the first frame of the animation, not the whole clip? I hate IE.(sometimes) Any ideas why it won't work in IE. sorry to get off subject in the PHP section. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.