onthespot Posted July 17, 2009 Share Posted July 17, 2009 After submitting a comment via a form, I then have to refresh the page for the comment to appear. the form action="". Is there anyway for the page to refresh once the comment is added so the comment appears immediately? Link to comment https://forums.phpfreaks.com/topic/166358-solved-refresh/ Share on other sites More sharing options...
phporcaffeine Posted July 17, 2009 Share Posted July 17, 2009 Sure, but we would need to see how your script is working currently (i.e code). Sounds like the script is rendering the rest of the page prior to echoing the comment ... er something like that, alas ... that's as good as you get until I get some code. Link to comment https://forums.phpfreaks.com/topic/166358-solved-refresh/#findComment-877227 Share on other sites More sharing options...
Amtran Posted July 17, 2009 Share Posted July 17, 2009 Yep, what phpORcaffine said. Though if you wanna be fancy you could just use AJAX. Link to comment https://forums.phpfreaks.com/topic/166358-solved-refresh/#findComment-877231 Share on other sites More sharing options...
onthespot Posted July 17, 2009 Author Share Posted July 17, 2009 Sorted just moved the script to the top of the page. Simple really, thanks Link to comment https://forums.phpfreaks.com/topic/166358-solved-refresh/#findComment-877343 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.