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

**URL:** <https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/58969>\
**Category:** flash\
**Created:** [July 27, 2004, 1:51pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/58969 "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/58969/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 2:08pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/58969/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 2:55pm UTC](https://forum.kirupa.com/t/mx2004-how-do-i-check-user-input/58969/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?
