$ is used to identify variable names in PHP, so at some point it is thinking you are trying to put a variable in and that is why it is cleared out. I'd need to debug to figure out where and why and find a solution.
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.