Pass variable via Javascript
<p>How can I pass a variable (<code>$member_id</code>) to the target php page(Member Profile details Query)?</p>

<pre><code>///-----



 echo '&lt;div id="show_profile_box"&gt;Show Member Profile details 
        //MySQL Query to display member profile details&lt;/div&gt;

    &lt;div id="display_member_id"&gt;&lt;a href="show_profile.php"?member_id=$member_id"&gt;Display Member id&lt;/a&gt;&lt;/div&gt;';

echo '&lt;script&gt;
    $("#show_profile_box").hide(100);
    $("#display_member_id").click(function () { 
        $("#show_profile_box").show(500); 
    });
    &lt;/script&gt;';
</code></pre>

<p>Thank you. Let me know if you need more info.</p>

<p><strong>* The whole idea is to display/show SELECTED member profile details. *</strong></p>
