[TYPO3-core] RFC: Mailform doesn't work with image submit buttons #1374
Ingmar Schlecht
ingmar at typo3.org
Fri Apr 28 23:17:01 CEST 2006
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
More information about the TYPO3-team-core
mailing list