how do I send data from one php file to another?
<p>I have a button on a file test.php</p>

<pre><code>&lt;?php
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
?&gt;
&lt;input type="button" name="btn" value="Download" onclick="alert('&lt;?php echo $url; ?&gt;')"&gt;
</code></pre>

<p>when the file is clicked, it alerts the page's url.</p>

<p>I have another page, test2.php.</p>

<p>I want the url that is being alerted to be displayed out in test2.php</p>

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