My site has a multipage form where each PHP page appears in an IFRAME. The last page has this command for going to the Thanks for Your Submission page:

Code PHP:
header(sprintf("Location: %s", $thankspage));

This works fine in IE, but in Firefox the thanks page page loads in the IFRAME. Any suggestions?