Also - if you've already sent the headers to the browser then there are 2 other options that i know of:
1) Send a piece of javascript to the browser (n.b. some browsers do not support it) by doing this:
//note that we are CLOSING php tags here:
?>
<script>
this.location = "http://www.mysite.com/restofpath.htm"
</script>
<?
Note that you have to supply the full URL here.
2) Include the file that you want to redirect back to, e.g:
include("originalpage.php");
This will not work across domains.
Hope that's helpful