Parse error using automatic filled <map>

tp22

New Member
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 :\[code\]<?php//Some code?><map name="mymap"><?phpforeach($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="http://stackoverflow.com/questions/3720396/image.png" usemap="#mymap"/>\[/code\]Thanks aforehand.Regards,Mister Myst
 
Back
Top