Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] Any function that gives the coordinates of the cursor? From: 1LT John W. Holmes (holmes072000 <email protected>)
Date: 02/28/03

> 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