Forum Moderators: open

Message Too Old, No Replies

Image for a form submit button; How to Suppress Coordinates?

the GET query reports where I clicked the image. how can i stop this?

         

Ryaske

3:23 pm on Aug 4, 2006 (gmt 0)

10+ Year Member



We use a small "Go" button for our site search. Whenever the button is clicked, a GET query appends the form fields to the URL, which our sitesearch uses to search our site.

There are three fields being returned;
sitesearch.php?q=search%20term&x=10&y=8

the x and y are the coordinates of where the "go" image (submit button) were clicked. They are apparently appended by the browser (firefox and IE do it.. i think all do)

These two terms just look yucky; and when I use a search result as an inbound link; they are hurting our SEO!

Since this is a GET request; there is no way I can remove the extra X and Y terms unless I use php to trim them and then refresh the page to the new URL. I dont like the idea of refreshing the page!

Is there any other way to supress the x and y terms?

Thanks in advance!

Fotiman

4:24 pm on Aug 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No, you can't stop it. The spec [w3.org] states:


When a pointing device is used to click on the image, the form is submitted and the click coordinates passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values, respectively.

Is there any other way to supress the x and y terms? Yes... use POST instead of GET. That will hide all of your query values. Sorry, that's all you can do.

[edited by: Fotiman at 4:25 pm (utc) on Aug. 4, 2006]

encyclo

6:54 pm on Aug 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use a standard
submit
button rather than an
image
button - it is only the
image
one which should transmit the x/y coordinates.

Ryaske

7:16 pm on Aug 4, 2006 (gmt 0)

10+ Year Member



Ok guys, thanks for the info

I am surprised there is no way, but okay.

I will think about using mod_rewrite ....
Although I WAS trying to avoid adding yet another line to it...

oh well, thanks again

i <3 webmasterworld