php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14502 change to <input type="image"> data from HTML forms
Submitted: 2001-12-13 22:29 UTC Modified: 2002-01-16 07:20 UTC
From: vogelc at senet dot com dot au Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.0 OS: win me
Private report: No CVE-ID: None
 [2001-12-13 22:29 UTC] vogelc at senet dot com dot au
To cut down the amount of work and number of pages in my employers site I'm trying to have one page that serves as a backdrop for all the full sized pictures.
I've been using HTML forms to pass values to my PHP pages, but ran into problems with the image input type.

I want to show the thumbnail "th_Boat.jpg" which when clicked will call the ALLPICS.php file and send it the URL of the large picture I want displayed: "BigBoat.jpg".

<input type="image" src="th_Boat.jpg" name="PICTURE" value="BigBoat.jpg">

I was hoping that this would call ALLPICS.php and send it the variable $PICTURE with the value "BigBoat.jpg".
This would enable me to have one generic big picture page for the whole site using the line:

print("<IMG SRC=\"$PICTURE\">"); //called from within ALLPICS.php

unfortunately I can only get the x and y coordinates of the click, not the VALUE from the input statement.

Would you consider the addition of _value to _x and _y so that the value section of the HTML tag <input type="image"> could be more useful?

Keep up the great work
Christopher

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 23:44 UTC] sniper@php.net
AFAIK, this is impossible. The browsers only send the coordinates to
the webserver and nothing else.

--Jani

 [2002-01-16 07:20 UTC] sander@php.net
Impossible. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 22:01:30 2025 UTC