<form id='nowhereform' action='#' method='post'>
  <input type='text' name='query' form='googleform yahooform' /> <!-- Look here ! -->
  <input type='submit' name='nowhere' value='Nowhere' />
</form>
<form id='googleform' action='google.php' method='post'>
  <input type='submit' name='google' value='Google' />
</form>
<form id='yahooform' action='yahoo.php' method='post'>
  <input type='submit' name='yahoo' value='Yahoo' />
</form>