# Getting data from input text box

**URL:** <https://forum.kirupa.com/t/getting-data-from-input-text-box/289834>\
**Category:** Uncategorized\
**Created:** [June 5, 2009, 11:21am UTC](https://forum.kirupa.com/t/getting-data-from-input-text-box/289834 "2009-06-05T11:21:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svibuk](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@svibuk](https://forum.kirupa.com/u/svibuk)\
**Post date:** [June 5, 2009, 11:21am UTC](https://forum.kirupa.com/t/getting-data-from-input-text-box/289834/1 "2009-06-05T11:21:43Z")

</div>

i hvae a username inputbox in layer 1 frame 1 witha submit button  
on submit button i have the following script  
on (release)  
{  
txt\_dynamic.\_visible=true;  
\_global.username = inputbox.text;

gotoAndStop(“user\_name”);

}

in layer 5 frame 1(“user\_name”) i have the follwing script  
txt\_dynamic.text ="Welcome "+ \_global.username;

txt\_dynamic is a dynamic textbox  
i get the data , values corrctly on clicking the button  
problems faced  
1)the button when pressed once nothing is displayed , i need to click it second time to get the data from the input field  
2)if someother value is enterd in the input box & submit button clicked , the value of dynamic text doesnot change  
how do i resolve the following
