Passing a variable through next and previous pages
<p>I start the page with  the: </p>

<pre><code>$selectedMenu = $_GET['selectedMenu'];
</code></pre>

<p>Then I have next and previous functions </p>

<pre><code>&lt;?php if ($prev) {  ?&gt;
    &lt;a href='?AID=&lt;?=$prev?&gt;&amp;selectedMenu=$selectedMenu' style='background-image:url(/images/navDivider.png); background-position:right center; background-repeat: no-repeat; padding-bottom:4px; padding-top:4px;'&gt;back&amp;nbsp;&amp;nbsp;&lt;/a&gt;
&lt;?php } else { ?&gt;
    &lt;a href='gallery.php?CID=&lt;?=$CID?&gt;&amp;SCID=&lt;?=$SCID?&gt;&amp;selectedMenu=$selectedMenu' style='background-image:url(/images/navDivider.png); background-position:right center; background-repeat: no-repeat; padding-bottom:4px; padding-top:4px;'&gt;back&amp;nbsp;&amp;nbsp;&lt;/a&gt;
 &lt;?php } ?&gt; 

&lt;?php if ($next){ ?&gt;
    &lt;a href='?AID=&lt;?=$next?&gt;&amp;selectedMenu=$selectedMenu'&gt;&amp;nbsp;next&lt;/a&gt;             
&lt;?php } ?&gt;
</code></pre>

<p>There is a query that pulls the AID, CID, and SCID</p>

<p>But what happens is that the $selectedMenu won't stay after the fist page even though I am passing it in the url. Any clues why it's dropping out?</p>
