You will want to be using a Session variable value. A Post value only exists when a form is posted to it. Session is the the way to save a value over a browser session across multiple links to different pages.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.