echo php variable string cut off after ampersand
<p>I submit the <code>s</code> variable to page.php from an input form on a different page.</p>

<p>The URL has the complete string with the ampersand, when I try to echo the variable, the string is cut off after the ampersand.</p>

<p>form:</p>

<pre><code>&lt;form action="page.php" method="get"&gt;

&lt;input type="text" name="s" id ="s" /&gt;

&lt;/form&gt;
</code></pre>

<p>Variable is: </p>

<pre><code>search &amp; search
</code></pre>

<p>URL:</p>

<pre><code>page.php?s=search+%26+search&amp;var2=variable
</code></pre>

<p>variable echoes as:</p>

<pre><code>search
</code></pre>

<p>I have tried:</p>

<pre><code>   echo htmlspecialchars($_GET['s']);
   echo htmlentities($_GET['s']);
   echo urldecode($_GET['s']);
</code></pre>