Hi,
I'd like to generate automatically an imagemap, but I always get a parse error without any other detail (that's useful.) than the location. Am I not using well ?
Here is the code :
<?php
//Some code
?><map name="mymap"><?php
foreach($rects as $rect) {
?>
<area shape="rect" coords=<?php echo '"'.$rect['x1'].','.$rect['y1'].','.$rect['x2'].$rect['y2'].'"'; ?> onclick="http://en.wikipedia.org/"/>
<?php
}
?></map>
<img src="image.png" usemap="#mymap"/>
Thanks aforehand.
Regards,
Mister Mystère