Hello,
I am finding that when I post a form to a php script that executes some code but doesn't return any html, and then uses a header to redirect the browser to a different page, I am getting a "Document Contains No Data" error with Netscape 4.x.
It works fine with newer browsers, but unfortunately I have to support back to ver 4.
I have also noticed that this problem goes away if I don't use the exit() function. I want to use exit() in many cases, though, where I want to make sure the rest of the page does not execute.
This would cause the error:
...
//After submit to database, go to different page:
if (everything is true){
(...code to submit to mysql...)
header("Refresh: 0;URL=siteadmin.php?function=EditAdmins&districtid=".$districtid);
exit;
}
When this script hits, Netscape brings up an alert window with the error, but lets me hit ok and continues on.
Any thoughts as to what I can do to stop this from happening?
Thanks,
-Clark