You would need to transmit the varaible to the server, this can usually be done through the use of a query string:

http://mydomain.com/mypage?variable=value