Posted by mayla_i on 07/01/06 14:23
The way that I suppose is to use on of the form elements which is
called (input, type=image)
this element is considered as an image button, it allows you to click
on it (on the image) and then with submitting the form it submits the
coordinates of the image you are using
you can use it this way:
<form name="form1" method="get" action= "cityInfo.php" >
<input name="img" type="image" src="yourMap.jpg" >
</form>
On cityInfo.php page write the following:
$x = $_GET[img_x];
$y = $_GET[img_y];
By this way $x and $y will contain the coordinates of the exact point
that the user had clicked on it (in pixels of course)
I hope this will be what you needed
Navigation:
[Reply to this message]
|