PdfPrep.com

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

An HTML form contains this form element:

<input type="image" name="mylmage" 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?
A . $_FILES[‘mylmage’][‘x’] and $_FILES[‘mylmage’][‘y’]
B . $_P0ST[‘mylmage’][‘x’] and $_P0ST[‘mylmage’][‘y’]
C . $_P0ST[‘mylmage.x’] and $_P0ST[‘mylmage.y’]
D . $_P0ST[‘mylmage_x’] and $_P0ST[‘mylmage_y’]

Answer: D

Exit mobile version