I created a circle using paint (Circle.jpg) and placed 4 numbers for now around it representing North (360) East(90) West(270) and South(180). I am trying to pass to PHP what number I click on. Can not get it to work or can I find anything close to what I am trying to do. Opening an HTML link works but not what I need. Below code does produce a circle when clicked around selection. Below is code just for East(90). I have tried also adding value=”90″, does not make a difference. Thanks in advance for help.
<body>
<body bgcolor="#0080C0">
<img usemap="#shapes" src="images/Circle.jpg" alt="">
<map name="shapes" id="shapes">
<area shape="circle" coords="158,76,10" href="#" bearing="90" alt="90" </area>
<?php
$StateOrBearing = $_POST['bearing'];
echo $StateOrBearing;
?>
You just need to update your HREFs with appropriate parameter information.
If you need very fine granularity, you could also pass pixel coordinates in Javascript or use the now-antiquated server side image map, but that’s a different can of worms.