# Prevent user enter 2 same answers

**URL:** <https://forum.kirupa.com/t/prevent-user-enter-2-same-answers/56046>\
**Category:** Uncategorized\
**Created:** [June 30, 2004, 4:07am UTC](https://forum.kirupa.com/t/prevent-user-enter-2-same-answers/56046 "2004-06-30T04:07:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karena](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@karena](https://forum.kirupa.com/u/karena)\
**Post date:** [June 30, 2004, 4:07am UTC](https://forum.kirupa.com/t/prevent-user-enter-2-same-answers/56046/1 "2004-06-30T04:07:17Z")

</div>

my question is to count how many correct answer the user will enter.  
if the user enter the same correct answer twice,the 2 same answers will not be count and the other 2 answer will be check whether correct or wrong.  
If the next 2 answer is correct markk will be add.  
Take note that i have 5 answers for this question but the user only has to enter 4 of the answers only.  
i can’t do that…pls help…  
here is the code i add in my check button
