Hi thank for your prompt reply.
I saw that thread... and tried to replace the code but it did the same thing. When I fill out the form and click the submit button all fields are empty and no rediret to the thank you page.
Update:
When I copy the script on another domain and it worked ok. There must be some wrong with server settings. Any ideas?