I am having an issue with using header location.
On my index page (named index.php) I have a form that allow users to logout and clear their cookies.
The form looks like this:
<form name="form" method="POST" action="index.php">
<input type="submit" name="logout" value="Logout">
</form>
the function for the form is:
if ($logout == "Logout") {
setcookie("user", "", time() - 3600);
header("Location: index.php");
exit;
}
In IE it works fine, but in NS4 I get a Netscape Alert that says "Document contained no data, please try again."
If I refresh the page is NS the user is logged out, so I think it has to do with the header. Any help or is my post too confusing?