FAPI3 image buttons discard incoming values

Created on 9 October 2007, over 17 years ago
Updated 15 September 2024, 10 months ago

by default, image buttons in $_POST data send back not their value, but the x/y coordinates they were clicked at. (strange but true). Right now, we discard that. This isn't explicitly NECESSARY, though; we can extract the x/y coordinates and send those back for server side processing. In theory, it could lead to fun stuff like 'click on the image to place an icon' forms: ie, imagemaps in FAPI3. Crazy stuff.

If the user puts in an explicit #return_value, that overrides the coordinate-based return value.

While this isn't a critical enhancement, it's definitely handy and can be useful for building tweaky image manipulation forms without the use of AJAX. And, hey, we get the data from the browser... we might as well use it.

✨ Feature request
Status

Closed: works as designed

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States eaton

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024