Strange image based submit button shows x y in output?

Hi this is a slightly different take on the problem others have had with submit buttons and submit text showing in mail output.

I am using an image based submit button the following problem has shown it self...

I have a pretty modified version of dons mail and I don't think that's the prob as if I leave the name attribute off it still sends what appears to be mouse cords in with the out put and it looks like this.

Name: Test
EMAIL: eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%74%65%73%74%40%74%65%73%74%65%72%6f%6f%2e%63%6f%6d%22%3e%74%65%73%74%40%74%65%73%74%65%72%6f%6f%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))
State: New Jersey

In the test below i named the image based button with attribute sb, note the output

sb_x: 34
sb_y: 9

In this test I removed the name attribute
OK so I still see x and y without the name how can I get rid of this little annoying problem altogether? Andrew anyone?

x: 34
y: 9

Please note i only see this prob with an image based button not a standard form button. with no name attribute....

PS what has happen to donpro his site is down from what I see.
Don if you see this please contact me you have my E

DC I designed your web page and your banner ad yes its me :-)

By Anonymous on

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Submit Image Button Problems?

OK I found this info on the net so im correct about x y but now how can I keep this from apearing in the output of the form can we strip it before its sent any ideas how to stop this problem ANYONE!

Maybea regex to strip it like strip xy and any number so it dosent show up or can i just prevent this odd output all together need help as client has complained about this allready.

Info about submit button behavior below.

A submit button (an input or button element with type="submit") returns the value of its name attribute under the name "submit".
A graphical submit button (an input element with type="image") returns the value of its name attribute under the name "submit", just like a normal submit button. Furthermore, receiving the names "submit.x" and "submit.y" will give the coordinates inside the image at which the client clicked.
If the form was submitted but no submit button was pressed (which can happen in some browsers), receiving the name "submit" will give an empty string. If a non-graphical submit button was pressed, receiving the names "submit.x" and "submit.y" will both give -1.

The special behavior of submit buttons makes it easy to decide which submit button was pressed, since its name always appears under the name "submit". The value attribute of submit buttons can then be used to specify the textual label on the button, independent of the internal handling of the button.

for IE and Firefox, adding

for IE and Firefox, adding "onsubmit=”this.submit();return false;" to the form field works. i haven't found a solution for Safari yet though.

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

I had the same dam problem

I had the same dam problem and this is how I fixed it in my custom form.
Try somthing like this ...
//Fix for image button coords sent ...$post = trim(strip_tags($_POST)); unset($post['x'], $post['y']);
Hope this can help somone.
DC
 

Stalk me!

Drupal Association Member