Reply to Re: geographical coordinates

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация