One way is to pass the variables around using the URL, eg. <a href=\"user.php3?user_page=$user_page&user_leht_komment=$user_leht_komment>User page</a>.
This would cause user.php3 to be run when the user clicks on this link, and the variables $user_page and $user_leht_komment containing the data from index.php3
Another way to do it (if you're using forms from one page to another) is to have <form type=hidden name=user_page value=$user_page> in your form definition.
Yet another way is to use cookies, but they tend to be a bit of an arse because of browser support (in my opinion anyways)
Or, if you do want to use cookies, then use sessions (as of PHP4)... in every page have the code
session_start();
followed by
session_register("user_name");
session_register("user_page");
... etc. for all the variables you want available between pages, and then just use the variables as normal.
hope some of that makes sense
dom
🙂