I hope I am not missing what you are trying to do here. But I think you can do something like this to pass an id to another file:
<img src="image.gif" alt="logo" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="1,1,39,39" href="file.php?crdid=1" />
<area shape="rect" coords="45,2,85,39" href="file.php?crdid=2" />
<area shape="rect" coords="87,3,126,37" href="file.php?crdid=3" />
</map>
OR, if you want to pass the id into the same file, couldn't you do this:
<img src="image.gif" alt="logo" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="1,1,39,39" href="<?php echo $_SERVER['PHP_SELF'] . '?crdid=1'; ?>" />
<area shape="rect" coords="45,2,85,39" href="<?php echo $_SERVER['PHP_SELF'] . '?crdid=2'; ?>" />
<area shape="rect" coords="87,3,126,37" href="<?php echo $_SERVER['PHP_SELF'] . '?crdid=3'; ?>" />
</map>
Then, in your file, do something like this:
<?php
if(isset($_GET['crdid'])){
$crdid = $_GET['crdid'];
}
// then use the id in your script from here...
?>