# Getting a value from an input text box

**URL:** <https://forum.kirupa.com/t/getting-a-value-from-an-input-text-box/106141>\
**Category:** Uncategorized\
**Created:** [April 2, 2004, 5:43pm UTC](https://forum.kirupa.com/t/getting-a-value-from-an-input-text-box/106141 "2004-04-02T17:43:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)\
**Post date:** [April 2, 2004, 5:43pm UTC](https://forum.kirupa.com/t/getting-a-value-from-an-input-text-box/106141/1 "2004-04-02T17:43:37Z")

</div>

i have an imput text box, with a var of dimes…  
lets say the user entered 9, then pressed total…  
i want the total, to give the value of 9 dimes, wich is .90

what i tried was something like this:

```auto

tDimes = dimes * .10;

tButton.onPress = function() {
     _root.total.text = "total: " + tDimes;
}

```

but as an output i get 0 ☹
