Zend
200-710 · Question #219
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…
The correct answer is D. $_POST['myimage_x'] and $_POST['myimage_y']. See the full explanation below for the reasoning.
Web Features
Question
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?Options
- 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']
How the community answered
(16 responses)- A6% (1)
- C13% (2)
- D81% (13)
Topics
#image input#$_POST#click coordinates#form submission
Community Discussion
No community discussion yet for this question.