Well, your code certainly is not complete. At least you are missing the close tags for the final table division and the table row. Also the closing bracket for the if statement is missing. That latter is probably the source of the error you are getting.
In addtion, there would need to be code somewhere to process and validate the captcha.