# Image\_submit\_tag, :get method and x&y issue

**URL:** <https://www.ruby-forum.com/t/image-submit-tag-get-method-and-x-y-issue/114402>\
**Category:** Rails\
**Created:** [September 12, 2007, 10:43am UTC](https://www.ruby-forum.com/t/image-submit-tag-get-method-and-x-y-issue/114402 "2007-09-12T10:43:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [September 12, 2007, 10:43am UTC](https://www.ruby-forum.com/t/image-submit-tag-get-method-and-x-y-issue/114402/1 "2007-09-12T10:43:42Z")

</div>

For search functionality I am using :get method to post the form. I am  
also  
using image\_submit\_tag.

```
<%= form_tag({:action => 'search'},{:method => :get}) %>
                <label>Search:</label>
                 <%= text_field_tag 'term' %>
                 <%= image_submit_tag "search.png",:name => nil%>
</form>

```

Problem is that when the form is submitted then firefox adds two more  
params. This is what the URL looks like after submission.

[http://localhost:3000/search?term=ROR&x=0&y=0](http://localhost:3000/search?term=ROR&x=0&y=0)

It should be noted that only firefox sends ‘x’ and ‘y’ params. IE  
doesn’t  
it. What should be done so that firefox doesn’t send ‘x’ and ‘y’  
params?

Thanks
