On the redirection of shoutbox, I've made 2 mistake causing it unable to work on some browsers, example IE 6. In PHP, to do a redirection is very simple.
[ Hide ] header('Location: http://domain.com/index.php');
However, don't do this [ Hide ] header('Location: http://domain.com/index.php');
die();
It seems logical if you put a
die() after
header('Location'). But the truth is, NO you shouldn't ! It will screw your code !
Took me some time to notice the problem. Not sure about header('Refresh') though, I'm calling die() after header('Refresh') and it seems running without problem.
Also remember to use
absolute URI for the header instead of relative URI. Browser like Opera accepts relative URI but IE and Firefox ain't too friendly to it. That's the 2nd mistake I've made.