Ok, tried looking it up in the online manual but cannot find it, although I know it exists...
There is a command which will add a variable to all external page calls.
In a form it will add a <input type="hidden"> line, in an href ?var=varvalue will be added to the src.
Trouble is I can't find the command. Can someone tell me please