Get a variable from href with id
<p>How can I get the id as a variable from that statement in same page? </p>

<p>I need to capture the <code>#dialog</code> to display in a popup and can't do that if I send the id to a different page. </p>

<pre><code>&lt;a href="#dialog?id=&lt;?php echo $image['image_id']; ?&gt;" name="modal"  class="info"&gt;Link&lt;/a&gt;
</code></pre>

<p>I've been using this to get it from the link but I need to capture it in same page. This is what i was using :</p>

<pre><code>$img = isset($_GET['id'])
</code></pre>
