Gossamer Forum
Home : Products : Gossamer Links : Discussions :

bug when submitting with image?

Quote Reply
bug when submitting with image?
After much investigation I think I have discovered a bug. Well I discovered and change in glinksql anyway that is causing me problems.

Basically, if I submit information via a a button like this:
<input type=image name=add value="1" src=/images/mybutton.gif width="50" height="50" border="0" />

What actually gets submitted are these values:
add = 1
add.x = 50
add.y = 50

The last two values are the dimensions of the image being clicked on. (internet exploder doesn't pass in the add=1 value at all, only the dimension values .x and .y.

Now that in and of itself doesn't cause any problems, but if on the receiving page you run a global like this:
sub {
my ($rec) = GT::Template->tags or
my ($rec) = @_;

do some stuff and
return $rec;
}

You will get the following error.
Not a HASH reference at GT::Template line xxx

The problem is being caused by the add.y and add.x values.

This was not a problem in previous versions.

Any suggestions?

peace.

klangan
Subject Author Views Date
Thread bug when submitting with image? klangan 2865 Nov 21, 2006, 10:12 AM
Thread Re: [klangan] bug when submitting with image?
brewt 2815 Nov 24, 2006, 6:21 PM
Thread Re: [brewt] bug when submitting with image?
klangan 2810 Nov 25, 2006, 11:29 AM
Thread Re: [klangan] bug when submitting with image?
brewt 2782 Nov 29, 2006, 7:42 PM
Post Re: [brewt] bug when submitting with image?
brewt 2781 Dec 1, 2006, 12:52 PM
Post Re: [brewt] bug when submitting with image?
klangan 2792 Nov 25, 2006, 10:49 PM