error in contact form - can't work it out
i have a standard contact form which i have used a number of times.
I have the form check for the 'submit' button being pressed, and then through a series of checks to ensure validation.
it seems to run ok, but in this particular instance, i am getting an error message, as though the form has already been submitted.
error reads "Sorry, there was a problem sending your message. Please try later" which shouldn't be tested for, until the form is posted
the problem seems to lie with my CSSMenuWriter menu.
when it isn't included, I dont get the error, when it is, I do.
by commenting out line 197, the error goes away, but otherwise, line 212 will run.
i have used the form with many other CSSMenuWriter menus without a problem
link to live form is
contact.php
form code is attached