# \[MX2004\] How do I check user input

**URL:** <https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/117436>\
**Category:** Uncategorized\
**Created:** [July 27, 2004, 1:51pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/117436 "2004-07-27T13:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujo](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sujo](https://forum.kirupa.com/u/sujo)\
**Post date:** [July 27, 2004, 1:51pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/117436/1 "2004-07-27T13:51:57Z")

</div>

I have a quiz where a user must enter a letter (A, B, C) into an input text field labeled answer1. When they click check answer, I need to have feedback that says correct or incorrect. I need to know how to do this. My check answers button is apparently not reading what the user has input.

---

<div class="post-metadata">

**Author:** ![dangerskew](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dangerskew](https://forum.kirupa.com/u/dangerskew)\
**Post date:** [July 27, 2004, 2:08pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/117436/2 "2004-07-27T14:08:37Z")

</div>

Make a dynamic text box named “feedback”. In the answer button put:

```auto

on(release){
if(_root.answer1.toLowerCase() == _root.correctAnswer.toLowerCase()){
_root.feedback = "Correct";
}else{
_root.feedback = "Incorrect";
}
}

```

But this means you need a variable with the correct answer

---

<div class="post-metadata">

**Author:** ![sujo](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sujo](https://forum.kirupa.com/u/sujo)\
**Post date:** [July 27, 2004, 2:55pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/117436/3 "2004-07-27T14:55:37Z")

</div>

I already have the text box with feedback. that is not the problem.  
The code on the button is not reading what the user input. I used the code above and made a variable with the correct answer. Still nothing. any other ideas?
