Javascript method to trigger function on another php page to update MySQL
<p>I have a php page that uses <code>onclick</code> in the rectangular coordinates of the area of a map.</p>

<p>When the user clicks in this area I need a function on another php page to update MySQL for that user_id</p>

<p><strong>page_1.php</strong> - user is logged in as user_id</p>

<pre><code>&lt;map id="map_id_01" name="map_name_01"&gt;
&lt;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"/&gt;&lt;/map&gt;
</code></pre>

<p><strong>page_2.php</strong></p>

<pre><code>&lt;?php myfunction($user_id); ?&gt;
</code></pre>

<p>What JavaScript method would work on <strong>page_1.php</strong> to trigger the function on <strong>page_2.php</strong></p>
