Clicked button adds text to screen
I would be very grateful if somebody could help me with my query.
My page has many buttons.
How could I achieve the following?
When each button is pushed, the word that it represents is added to a list on the bottom of the screen.
e.g. one button says 'cow'. When you push the button, the word "cow" appears at the bottom of the page. When you then push the 'pig' button, the bottom of the page now reads "cow, pig" etc.
How could I then send this list via an email at the click of a button?