Avoiding Submit.x and Submit.y

I had an issue with the URL ending with submit.x=99&submit.y=99 when the form submit is through an image button.(Numbers are the location point of the click on the image button.)

I found a simple answer for this.

In the form tag add, ”onsubmit=”this.submit();return false;”.

<form id=”exampleForm” name=”exampleForm” onSubmit=”this.submit();return false;”>

This will remove submit.x and submit.y.

2 Comments

  • By anonymous, December 9, 2008 @ 6:50 am

    Just what i was looking for, thanks.

  • By veronica, December 10, 2009 @ 2:37 pm

    eassssssy!

Leave a comment