It looks like that would work. Maybe it is a problem with the form on the page and not the server code. Please attach the full page as an attachment so I can open it with dreamweaver and take a look.
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.