# Adding lines to existing variable or textArea

**URL:** <https://forum.kirupa.com/t/adding-lines-to-existing-variable-or-textarea/158843>\
**Category:** flash\
**Created:** [August 12, 2005, 10:18am UTC](https://forum.kirupa.com/t/adding-lines-to-existing-variable-or-textarea/158843 "2005-08-12T10:18:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phlop](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@phlop](https://forum.kirupa.com/u/phlop)\
**Post date:** [August 12, 2005, 10:18am UTC](https://forum.kirupa.com/t/adding-lines-to-existing-variable-or-textarea/158843/1 "2005-08-12T10:18:38Z")

</div>

Hey there…

I have a loop running on a buttons submit which returns several results in the form of…

Product ID - Product Name

Basically, I want to have a textArea, or a variable textfield and have it update it for each of the products the loop returns…

For instance… the loop runs, and returnes 3 products… I want the final display in the text area to be

Product ID1 - Product Name1  
Product ID2 - Product Name2  
Product ID3 - Product Name3

Can someone explain to me how I might achieve this?  
Thank you.
