class WWW::Mechanize::Form

def [](field_name)

puts form['name']
Fetch the value set in the input field 'name'
==Example
Fetch the value of the first input field with the name passed in
def [](field_name)
  f = field(field_name)
  f && f.value
end