Whats the full stop for?
header("Location: .?page=$page");
The php documentation for
strpbrk() suggests to me that strpbrk() might not be suitable for the use that you are putting it to. (But then I could be wring!)
Another suggestion might be to add the full url address to the redirect, minus the "index.php", you can get this from the referer environment variable $_ENV["HTTP_REFERER"] (I think that is what it is from the top of my head!)