# Image button coordinates not in form params

**URL:** <https://www.ruby-forum.com/t/image-button-coordinates-not-in-form-params/135033>\
**Category:** Rails\
**Created:** [April 17, 2008, 11:15am UTC](https://www.ruby-forum.com/t/image-button-coordinates-not-in-form-params/135033 "2008-04-17T11:15:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [April 17, 2008, 11:15am UTC](https://www.ruby-forum.com/t/image-button-coordinates-not-in-form-params/135033/1 "2008-04-17T11:15:51Z")

</div>

I have a form submitted using remote\_form\_tag. I have two image buttons  
in this form.

I am accustomed in other languaes of detecting the presence or value of  
buttonNameA.x and buttonNameB.x to know which button was clicked.

In the params I am getting from my form, I get entries for both buttons  
with no indicators of which was clicked.

The output of essentially doing debug(params) simply shows  
btnSearch: “”  
btnClear: “”

What is Rails’ solution to this? It seems to be eliminating rather  
useful (and commonly used) info.

– gw
