Take the 2-minute tour ×

I have a search form in a Rails app that generates the following HTML

<form action="/users" method="get">
    Search by name:
    <input class="text" id="query" name="query" type="text" value="" />
  <input class="submit" src="/images/buttons/search.png?1296324322" type="image" />

When I submit the form, the url has x and y query parameters in addition to the query one in the form:


where are these params coming from?

share|improve this question
add comment

1 Answer

up vote 10 down vote accepted

Browsers submit x and y parameters when you use an image as your submit button. The values signal the position within the image that the user clicked.

share|improve this answer
add comment

Your Answer


