[TYPO3-core] RFC: Mailform doesn't work with image submit buttons #1374

Ingmar Schlecht ingmar at typo3.org
Fri Apr 28 23:18:14 CEST 2006


Forgot to attach the patch. Here it is.

- Ingmar

Ingmar Schlecht schrieb:
> This is a CVS patch request.
> 
> Problem:
> Mailforms don't work with <input type="image"> submit buttons.
> This is because browsers don't send the value="..." attribute of image
> buttons when the form is submitted. Instead, the x/y coordinates are sent.
> 
> Example:
>    An image button like this:
>          <input type="image" name="mybutton" src="test.jpg" />
>    ...results in GET variables like this:
>          &mybutton.x=199&mybutton.y=114
>    ...which result in a PHP $_GET array like this:
>          Array (
>              [mybutton_x] => 199
>              [mybutton_y] => 114
>          )
> 
> Solution:
> Check for the _x and _y variables as well.
> 
> BT reference: http://bugs.typo3.org/view.php?id=1374
> 
> Branches: HEAD and 4.0
> 
> The patch has been written by Thorsten Kahler.
> 
> cheers
> Ingmar

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug-1374_02.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060428/bf6c4655/attachment.pot 


More information about the TYPO3-team-core mailing list