# Needing help on a simple form

**URL:** https://forum.kirupa.com/t/needing-help-on-a-simple-form/216176
**Category:** flash
**Created:** [February 14, 2007, 7:21am UTC](https://forum.kirupa.com/t/needing-help-on-a-simple-form/216176 "2007-02-14T07:21:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aprylian](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@aprylian](https://forum.kirupa.com/u/aprylian)
#### Post date: [February 14, 2007, 7:21am UTC](https://forum.kirupa.com/t/needing-help-on-a-simple-form/216176/1 "2007-02-14T07:21:03Z")

</div>

Hi there,

I’m relatively new to Flash, but I’m learning quickly. What I’d like to create is a form where a user can enter text into a textfield box on the left, and then when the hit submit, another text box on the right shows the text they entered wrapped with brackets. I can’t figure out how to set this up.

text box here: output box here: (with their results)

they type:  
hat [hat]  
dog [dog]  
bird [bird]

I’ve learned the code would be something like:

var MYVAR = “hat”;  
trace(MYVAR);  
var MYVAR = “[” + MYVAR + “]”  
trace(MYVAR)

except that this outputs the original word in its unwrapped state as well.

I think I can figure out how to tell the button what to do on submit, using this code to wrap the words, but I don’t know how to get the output to appear in a text box beside it.

I’ve gone through several of the wonderful tutorials here. I think I’m dealing with strings.  
Any help is greatly appreciated.

Thanks,

Apryl
