<?
echo "X=$foo_x, Y=$foo_y ";
?>
<form action='' method=post>
<input type="image" alt=' Finding coordinates of an image' src="xy-coordinates.jpg" name="foo" style=cursor:crosshair;/>
</form>
The above code should return the image coordinates when the user clicks on the image.
However when i try on my apache server on my computer, it returns the errors
Notice: Undefined variable: foo_x in Z:\web\httpdocs\coursework 2\coor.php on line 2
Notice: Undefined variable: foo_y in Z:\web\httpdocs\coursework 2\coor.php on line 2
Something not set in my php.ini file maybe??
Thanks