php redirection..

From: Date: Tue, 12 Dec 2006 16:54:17 +0000
Subject: php redirection..
Groups: php.general 
Request: Send a blank email to php-general+get-245763@lists.php.net to get a copy of this message
hi... i have what should be a pretty simple question that i'm obviously missing something for... i want to be able to display some text/content and to then redirect the user to another page. basically: cat.php -echo " test content<br>" -echo " more test content<br>" //redirect user echo" <script> location.href='foo.php'; </script> "; --------------- foo.php -echo "i'm here" should be pretty simple... however, in my test, without the script/location.href i display the content ok. when i add the script/location.href, i get redirected, but the content is never displayed... any thoughts/samples/pointers on what might be going on, and how this should really be accomplished.. to be honest, i'm embarrassed to even be raising this here!! thanks.

« previous php.general (#245763) next »