Dynamic text field - OnPress

Hi,

I have a photo gallery with xml and they have their ID in var i.

now i want to onpress picture another place it will create a text field but in a vertical align.

like

if i press 4th pic then it will show like

**[SIZE=4]Picture quantity[/SIZE]
picture4 1
picture2 1
picture6 1

there is another thing i want when i click one more time on clicked picture then just want quantity increase not add on my next text field

And you can say this is a like Shopping Cart.

**