E-mail webform issue

Ok so im building a webform where the variables get emailed via php.
Basically its like the one in the tutorials here except that I have hundreds of variables. As long as those variables retain the value of zero then they are not emailed, the ones that change are emailed.

My problem is this: I have done everything correctly so it works fine offline however, when I try to run it online the very final send button to email it should also take the form to the frame that says “thank you, your info has been emailed” but it doesnt, so anyone can click on the send button 50 times and give me 50 emails.

Any help on this matter would be greatly apreciated.