append html with values

append html with values


Assuming I have a variable that contains the html to an input text field
and that html is currently being displayed in the page, how can I get
that html and append it to another variable and pass, not just the html
but also the text that any user could have introduced in that field?
Thanks
Marta Figueiredo