Bug #14502 Updated: change to <input type="image"> data from HTML forms

From: Date: Wed, 16 Jan 2002 12:20:59 +0000
Subject: Bug #14502 Updated: change to <input type="image"> data from HTML forms
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-77240@lists.php.net to get a copy of this message
ID: 14502
Updated by: sander
Old Summary: change to <input type="image"> data from HTML forms
Reported By: vogelc@senet.com.au
Old Status: Feedback
Status: Closed
Bug Type: Feature/Change Request
Operating System: win me
PHP Version: 4.1.0
New Comment:

Impossible. Closing.


Previous Comments:
------------------------------------------------------------------------

[2001-12-13 23:44:40] sniper@php.net

AFAIK, this is impossible. The browsers only send the coordinates to
the webserver and nothing else.

--Jani


------------------------------------------------------------------------

[2001-12-13 22:29:48] vogelc@senet.com.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

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14502&edit=1



Thread (6 messages)

« previous php.dev (#77240) next »