Buttons how to retrieve "value"?

Giganews Newsgroups
Subject: Buttons how to retrieve "value"?
Posted by:  richard (memb…@newsguy.com)
Date: Fri, 27 Nov 2009

<td class="ql"><input type="submit" Value="A"></input></td>

In the above example, a rough one, how exactly is the value of "A" passed
to another item?
I have a simple form with 4 buttons for choices. A B C D.
When user clicks "B", the response will read maybe something like
"you pressed B".