Echo Javascript Variable in Php to another page
<p>I have code which passes php variable to another page on my site:</p>

<pre><code>echo'&lt;a class="btn btn-danger" style="margin-left:10px;width:120px;float:left;"  href="fullsizemarket.php?imageid=',$imageid,'&amp;action=removed"&gt;Remove from Cart&lt;/a&gt;';
</code></pre>

<p>I am able to retrieve the php variable $imageid by the following: </p>

<pre><code>$imageid = htmlentities($_GET['imageid']);
</code></pre>

<p>I want to also pass in this code the value of a javascript variable. The variable is set in an earlier part of the code as follows: </p>

<pre><code>     var rowcount
</code></pre>

<p>I don't know how to pass var rowcount in the same echo code as I pass $imageid. What is the code to do this?</p>
