Take a look at mysql's documentation on the SELECT syntax
SELECT * FROM your_table
and if you want to be more specific
SELECT * FROM your_table WHERE field_name='value'
any part of a form, whether it be a textarea, textbox, checkbox, radio, etc; php will create a value from the name you specify in the form
name = "field_name" will create a variable $field_name that holds the value the user typed in or selected.
I'm not exactly sure what you are trying to accomplish with this code. Can you be more specific and someone may be able to help you better.
Cgraz