I have a php page that uses onclick
in the rectangular coordinates of the area of a map.
When the user clicks in this area I need a function on another php page to update MySQL for that user_id
page_1.php - user is logged in as user_id
<map id="map_id_01" name="map_name_01">
<area shape="poly" id="area_id_01" class="" title="area_title_01"
onclick="page_2.php myfunction"
coords="360,236,696,236,696,448,360,448,360,237"/></map>
page_2.php
<?php myfunction($user_id); ?>
What JavaScript method would work on page_1.php to trigger the function on page_2.php