PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The header must come before any output though, ie only useful if you're not 'sending anything to the user'. You can use output buffering but best not to go there
I want to send a user to a location after filling out a form, but I have other things, like headers and such, in include files, that have to be loaded.
Will this still work? (I'm trying it out right now but I want to know what problems can arise and how I can correct them)
It wil work as long as you don't send output. Output is basically anything that gets sent to the browser/client, such as html and even whitespace (outside of php tags).
So you can do show form->post form->process form->redirect
But if you want to do show form->post form->process form->display something to the user->redirect, then the header won't work (unless you use the previously mentioned output buffering), in this case using a meta-refresh is usually better.