Jump to content

refresh a page


devilinc

Recommended Posts

i have already echoed title and included that file in my php script, a header file....

but now i want to refresh my php script if the comment has been successfully added else remain in the same page....it remains in the same page now with just a msg that the comment is added....but i cant see the comment unless i refresh the page...

i get he headers already sent error when i put a header() there as i have included another php file which already echoes title to screen....so what do i do now?

i want the comment to be displayed to the user once he clicks on save and not make it tedious for him to refresh....any suggestions?any way around?

 

Link to comment
https://forums.phpfreaks.com/topic/220899-refresh-a-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.