To test global variables, I wrote the following PHP script:

(5)echo "$counter";
(6)// header ("location:statistics/contents.php");

When the script is called several times, the variable is increased 
accordingly.  Thus, it exists globally.

But when I un-comment line (6), the Web page ("contents.php) is displayed 
but I cannot echo the variable.




PS: Richard, thank you for your reply, but I still don't understand why is 
not passed.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to