hi,

I use an image button to post a form. Let's say the button is on A.php and form target is B.php. when clicked, B.php comes but with extra arguments in the url. As far as I understand they are the coordinates of the point I clicked on the button image.

<input name="image" type="image" class="search_button_big" title="Search" value=" " src="img/dot.png" />
....B.php?image.x=38&image.y=24&image=+

When I remove name property additional arguments in the url simplifies as follows:
<input type="image" class="search_button_big" title="Search" value=" " src="img/dot.png" />
...B.php?x=78&y=31

How can I prevent these x and y's?

One way, is to change your form method to "POST". That way, no query strings (?blahblah) are generated.

Thanks, I know but it needs to be GET method. Moreover I wonder the reason and ways to control it. Any other suggestion or piece of information?

ok I changed it back to submit button and do some css tricks...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.