Well it's pretty easy to figure out. Just put your textbox object on one layer and your text object on another layer or wherever you want them. Make some kind of submit button/sprite then do something like.
On submit button clicked, set text to textbox.text
You don't even need to use variables with this set up as long as you are only asking for one piece of text.