Does anyone know if you need to call exit() after every call to header('location...')? I have found that on some forms that call themselves and redirect depending on POST data, I have had to add the exit() call.
Any thoughts?
You might not always need to call exit(), but you should. The idea is that if you do not terminate the script at that point, control will continue proceed down the script and may do things that you do not want to be done as you want to redirect.