Passing a url from one php file to another
<p>I have a search function, that searches for youtube videos and display them on my front page. Just like YouTube I want to have another page on my site, so that when they click on a video, it takes them to a new page and display the video there - still part of my website. </p>

<p>I have a search.php where you can make the search and a video.php where you should be able to watch a video. </p>

<p>I had this on my video.php:</p>

<pre><code>    &lt;a href='video.php?var=$video_id['v']'&gt;Data link&lt;/a&gt;
</code></pre>

<p>$video_id['v'] = contains the url of the youtube page.</p>

<p>and on my video.php I have:</p>

<pre><code>    &lt;?php
      echo $_GET['var'];
    ?&gt;
</code></pre>

<p>the value of var is equal to "var". not the URL I was suppose to get.  do you know what should I do?</p>
