# Populating a dynamic text box

**URL:** <https://forum.kirupa.com/t/populating-a-dynamic-text-box/203821>\
**Category:** flash\
**Created:** [October 14, 2006, 1:54pm UTC](https://forum.kirupa.com/t/populating-a-dynamic-text-box/203821 "2006-10-14T13:54:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fugu996](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fugu996](https://forum.kirupa.com/u/fugu996)\
**Post date:** [October 14, 2006, 1:54pm UTC](https://forum.kirupa.com/t/populating-a-dynamic-text-box/203821/1 "2006-10-14T13:54:22Z")

</div>

hello people, i seem to be having a problem with populating a text box, for example: i have 4 buttons with for differant email address in, when i click on one of those buttons i want a textbox on the next frame automatically to display the email addy in the to box of my email form. this is my code:

```auto
on (release) {
 _root.form.toemail.text = "[EMAIL="david@myemail.com"]david@myemail.com[/EMAIL]";
 gotoAndStop(16);
 
}

```

however instead of the box contining the email it contains this - level0.form.toemail - can anyone see were im going wrong? thank you in advance.
