How to pass variable using javascript/jquery from one PHP file to another PHP file
<p>I have two PHP files a.php and b.php. I have some links in a.php like this:</p>

<pre><code>echo "&lt;ul&gt;";    
 foreach($x-&gt;channel-&gt;item as $entry) {
 echo "&lt;li&gt;&lt;a href='NEED SOME CODE HERE TO OPEN b.php' title='$entry-&gt;title'&gt;" . $entry-&gt;link . "&lt;/a&gt;&lt;/li&gt;";
    }
echo "&lt;/ul&gt;";
</code></pre>

<p>When the user clicks on that link, the second page b.php should open and ALSO b.php should know the contents of the variable <code>$entry-&gt;link</code> so that based on the<code>$entry-&gt;link</code> I can do some conditional checks like this:</p>

<p>in b.php, I want to do this check:</p>

<pre><code>if($entry-&gt;link=="http://www.google.com") {
 //Some code here
}
</code></pre>

<p>How can I do this?</p>
