Title: Error message when correct answer is given
Last modified: August 19, 2016

---

# Error message when correct answer is given

 *  [lvalesko](https://wordpress.org/support/users/lvalesko/)
 * (@lvalesko)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-message-when-correct-answer-is-given/)
 * I installed the plug in, activated it, went to their website and copied and pasted
   their code into the comments.php of my theme, (WordPress Default 1.6 by Michael
   Heilemann), exactly as they said to.
 * The field correctly appears when users want to leave a comment, but even when
   the correct number is typed in users are told “Error: You have entered the wrong
   sum in the spam protection field”

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [justinsamuel](https://wordpress.org/support/users/justinsamuel/)
 * (@justinsamuel)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-message-when-correct-answer-is-given/#post-674958)
 * If you decided to change the field names through the WordPress options, be sure
   to change the field names in the code you added to comment.php (and, after correcting
   the field names in the code you added, be sure to refresh/clear browser cache).
 *  Thread Starter [lvalesko](https://wordpress.org/support/users/lvalesko/)
 * (@lvalesko)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-message-when-correct-answer-is-given/#post-674962)
 * I didn’t change anything but wonder if I need to…Not sure how to do this… here’s
   what’s in the comment.php for Field Names:
 *  <!– ****************** Field Names ****************** –>
    <fieldset class=”options”
   > <legend>Field Names</legend> <p style=”margin-left: 25px; color: #555; font-
   size: .85em;”> <label for=”mcsp_opt_fieldname_useranswer”>Name of field for user’s
   answer:</label> <input name=”mcsp_opt_fieldname_useranswer” type=”text” id=”mcsp_opt_fieldname_useranswer”
   value=”<?php echo $optionarray_def[‘mcsp_opt_fieldname_useranswer’]; ?>” size
   =”30″ />
 *  <label for=”mcsp_opt_fieldname_mathresult”>Name of hidden field that contains
   the hash:</label>
    <input name=”mcsp_opt_fieldname_mathresult” type=”text” id
   =”mcsp_opt_fieldname_mathresult” value=”<?php echo $optionarray_def[‘mcsp_opt_fieldname_mathresult’];?
   >” size=”30″ /> </p> </fieldset>
 * And here’s what in the WordPress Options > Field Names:
    User’s Answer: mcspvalue
   Hidden Field that Contains the Hash: mcspinfo
 * I’m assuming by your post I need to put the WordPress options into the comment.
   php code but I don’t know exactly where…
 * Thanks!
    Lori 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error message when correct answer is given’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [lvalesko](https://wordpress.org/support/users/lvalesko/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/error-message-when-correct-answer-is-given/#post-674962)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
