Studiati questo codice:
Codice PHP:<form method="post">
<input type="image" width="520" height="454" name="map" src="http://www.travian.com/img/en/s/s7.gif" />
</form>
<?php
$_POST['map_x'] = isset($_POST['map_x']) ? $_POST['map_x'] : '0';
$_POST['map_y'] = isset($_POST['map_y']) ? $_POST['map_y'] : '0';
print('Coordinate (' . $_POST['map_x'] . ', ' . $_POST['map_y'] . ')');
?>

Rispondi quotando