Tell us
exactly what is and where it is going wrong. Is the form not getting submitted to the form handler? Then try (for example)
Tizag's flash form tutorial. Is the form handler not mailing the message? Is the browser sent to the "Thank You" page?
In general, when asking for help you should specify what you want to happen and what is actually happening, including any error messages. When
asking about code, include a minimal test case and links to live pages. We need to be able to recreate the problem so that we can diagnose it.