you could always just do the processing in the head of the page , instead of transfering it to another page and redirecting back to soemwhere else..
and if the header function doesnt work( it hates me, so i hate it back), you can always use the meta tag:
<META http-equiv="Refresh" Content="0;URL=url.php">
( the 0 before 0;URL is the delay in seconds btw )