Posted by Janwillem Borleffs on 02/13/07 20:49
Sandman wrote:
> Can I preserve the changes across page loads with globals?
>
No. The global keyword is used to import variables into a function's
namespace:
$a = 1;
function foo() {
global $a;
print $a;
}
foo();
What you are looking for are sessions or cookies:
http://www.php.net/session
http://www.php.net/manual/en/function.setcookie.php
JW
Navigation:
[Reply to this message]
|