It looks as though you are redirecting to a thank you page. Do you get to this page? If you are not getting to this page it would indicate that the server behavior is not triggering or it is triggered and fails. I have added a debug statement so that we can see the query code that is attempting to be executed. I think this will be the first thing that should be checked, this should give us a clue about what is going wrong. Please give this a try and let us know what the result is.