title: playing videos on second page php
body: <p>This is kind of stupid question but is there any way to play videos just by using two pages, I mean like instead of creating an html page for every video I upload to my website, can I have only two php pages and then pass the video from the first page and play on the second one?</p>
  
  <p>I know about passing variables in url but I am kinda confused on how to do this.</p>
  
  <p>I actually embedded my videos from google drive and have a format like </p>
  
  <pre><code>&lt;iframe src="https://docs.google.com/file/d/0B5ZMsnZoUVNSWHhxeGc/preview" width="640" height="385"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>would it be possible to do like</p>
  
  <pre><code>&lt;a href="play.php?video='test.mp4'&gt;Click to play&lt;/a&gt;
  </code></pre>
  
  <p>or like</p>
  
  <pre><code>$video= 'test.mp4';
  &lt;a href="play.php?vid='$video'&gt;Click to play&lt;/a&gt;
  </code></pre>
  
  <p><strong>play.php</strong></p>
  
  <pre><code>  $video = $_GET['vid']
   if(!empty(($video)){
  
  //then play the video here.   
   }
  </code></pre>