Re: Any function that gives the coordinates of the cursor?
| From: | 1LT John W. Holmes | Date: | Fri, 28 Feb 2003 17:09:16 +0000 |
| Subject: | Re: Any function that gives the coordinates of the cursor? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137613@lists.php.net to get a copy of this message | ||
> 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...