How to prevent page from resubmit on refresh when “Cannot modify header information – headers” warning shows
So the root problem is sending headers, specifically the timing. Webpages have http headers, and http headers come before the content. The headers tell the browser what it’s recieving, and they must be sent first. When PHP outputs stuff, it needs to tell the browser to expect output, so the moment a character is output, … Read more