Forum Moderators: coopster

Message Too Old, No Replies

&x=0&y=0 what is it?

additional search query string

         

thegreatpretender

4:13 am on Sep 20, 2007 (gmt 0)

10+ Year Member



I have a regular query script, when making a query using the button i get this additional string "&x=0&y=0" in the url. This doesn't show up when just pressing enter instead of clicking the button when doing the query.

Anyone know what is it? What causes it to appear? It is definitely not in my code.

Thanks

Habtom

5:13 am on Sep 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This occurs when you have <input TYPE=image . . . >

thegreatpretender

5:37 am on Sep 20, 2007 (gmt 0)

10+ Year Member



Oh yes, I have recently changed my search button to image one. So, is there a way to remove it? I don't see any effect on my queries but it's really annoying when you see something that you do not expect/want to see.

Thanks for the reply.

vincevincevince

5:40 am on Sep 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can try returning to the standard 'submit' type, but using CSS to apply a background-image and remove the border. It certainly don't have universal browser support.

I'd say live with the extra arguments - they shouldn't cause a problem.

thegreatpretender

6:08 am on Sep 20, 2007 (gmt 0)

10+ Year Member



If it won't cause any problem, I'll just leave it. Thanks.

omoutop

8:42 am on Sep 20, 2007 (gmt 0)

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



they wont cause any problems at all if you have SUPERGLOBALS off.

If you have them on, there is one case that the extra $x, $y can cause you some problems:
if you do some maths in a page, where most of us use basic equations letters, x, y, z, etc.

And the problem will appear only if you have poorly defined variables

vincevincevince

8:56 am on Sep 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SUPERGLOBALS

I suspect you meant 'register_globals'? Good point though... although these days we can usually assume that it's off already. Only stone-age webhosts have it on!

On the other hand, if you have register_globals on ... anyone could add &x=0&y=0 manually and get the same effect.