php-general | 2003022
Date: 02/28/03
- Next message: Pablo A. Godel: "[PHP] loosing mysql connection with PHP 4.3.1"
- Previous message: Steve Buehler: "RE: [PHP] testing for < 0"
- In reply to: Minghua Yao: "[PHP] Any function that gives the coordinates of the cursor?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Are there any functions in PHP which can give us the coordinates of the
cursor when we click the mouse?
> Thanks for the replys.
If you use an image as your submit for your form, you can.
<input type="image" src="foo.jpg" name="image">
When that image is clicked on, you'll have
$_POST['image_x'] and $_POST['image_y'] as the coordinates where it was
clicked.
---John Holmes...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Pablo A. Godel: "[PHP] loosing mysql connection with PHP 4.3.1"
- Previous message: Steve Buehler: "RE: [PHP] testing for < 0"
- In reply to: Minghua Yao: "[PHP] Any function that gives the coordinates of the cursor?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

