How can I do a redirect with PHP inside the same page?
Posted on 2008-11-17
I have a form that I process on the same page. The user submits the form and using the $_GET grab a value in the querystring and then I process the form (insert, update, whatever).
When I am done doing this I want to redirect back to the same page to load the results of my form changes.
In ASP I would do response.redirect "mypage.asp". I've read in PHP that this is done with location: header...but when I try that it tells me the header is already written.