[PHP] image submit buttons

2002-11-04 Thread John Meyer
(isset($_POST[Submit])) is this the way to check a submission image to see
if it's been set?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] image submit buttons

2002-11-04 Thread John W. Holmes
 (isset($_POST[Submit])) is this the way to check a submission image
to
 see
 if it's been set?

Nope. Try the manual:

IMAGE SUBMIT variable names
When submitting a form, it is possible to use an image instead of the
standard submit button with a tag like: 

input type=image src=image.gif name=sub
 
When the user clicks somewhere on the image, the accompanying form will
be transmitted to the server with two additional variables, sub_x and
sub_y. These contain the coordinates of the user click within the image.
The experienced may note that the actual variable names sent by the
browser contains a period rather than an underscore, but PHP converts
the period to an underscore automatically.

So you'll have $_POST['Submit_x'] and $_POST['Submit_y'] and you can
check for either to see if the image was clicked.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php