# Problem with input text boxes

**URL:** <https://forum.kirupa.com/t/problem-with-input-text-boxes/199241>\
**Category:** Uncategorized\
**Created:** [August 31, 2006, 9:29pm UTC](https://forum.kirupa.com/t/problem-with-input-text-boxes/199241 "2006-08-31T21:29:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGKbrian](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AGKbrian](https://forum.kirupa.com/u/AGKbrian)\
**Post date:** [August 31, 2006, 9:29pm UTC](https://forum.kirupa.com/t/problem-with-input-text-boxes/199241/1 "2006-08-31T21:29:22Z")

</div>

I am having problems with this chunk of code. I realize the problem has to do something with the line **\_root[“input”+ver] = enterAnswer** but im not sure how to fix it - when i trace enterAnswer it gives me an undefined. Any suggestions would be greatly appreciated!

```auto

function checkAnswer(ver) {
    _root["input"+ver] = enterAnswer
    correctAns = holdData[ver][2]
    trace (enterAnswer)
    trace (correctAns)
    if ( enterAnswer == correctAns ){
        reply.text = "correct!"
        reply.setTextFormat(replyFormat);
        this["button"+ver]._alpha = 10;
        this["button"+ver]._enabled = false
    }else{
        reply.text = "no im sorry try again"
        reply.setTextFormat(replyFormat);
    }
    
}

```
