0

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?

Edited by mehmedean: n/a

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by mehmedean
0

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

0

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?

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.