PrepAway - Latest Free Exam Questions & Answers

How can you now access the relative coordinates of the mouse click?

An HTML form contains this form element: <input type=”image” name=”myImage”
src=”image.png” /> The user clicks on the image to submit the form. How can you now
access the relative coordinates of the mouse click?

PrepAway - Latest Free Exam Questions & Answers

A.
$_FILES[‘myImage’][‘x’] and $_FILES[‘myImage’][‘y’]

B.
$_POST[‘myImage’][‘x’] and $_POST[‘myImage’][‘y’]

C.
$_POST[‘myImage.x’] and $_POST[‘myImage.y’]

D.
$_POST[‘myImage_x’] and $_POST[‘myImage_y’]

Explanation:


Leave a Reply

Your email address will not be published. Required fields are marked *