is there a way to pass php variable with div id?
<p>i'm trying to pass a pass php value through "href" from one div to another div.</p>

<p>As we can do this from one page to another like</p>

<pre><code>&lt;a href="somepage.php?id=&lt;?php echo $id;?&gt;"&gt;&lt;/a&gt;
</code></pre>

<p>is there a way to do it using id(css selector)
for ex:</p>

<pre><code>&lt;div id="div1"&gt;
&lt;a href="#div2?id=&lt;php echo $id?&gt;"&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>can you please suggest a way to where i can pass a php value through "href" from one division to another division in the same page</p>