Invalid comment syntax, should eval $_SERVER['REQUEST_METHOD'] in your condition instead of just checking if POST assoc array isset, also set headers before rendering any HTML and perhaps just toggling a class in JS if the answer is correct. In fact, just port this entire site to JS, should take 5 minutes tops.