What have you tried? We have a validate unique function in Server Validations you could use. Attach a copy of the page you are working on so I can see what you have tried and I can try to comment on what is wrong.
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.