title: What is the best way to embed Youtube videos?
body: <p>I'm building a video website and I want my users to be able to upload or embed videos from Youtube. The Youtube API doesn't seem to provide video upload from their website, or do they?
  So I tried to embed videos via an <code>iframe</code> with PHP. Here is the code:</p>
  
  <pre><code>&lt;?php
  $source=$_POST['source'];
  ?&gt;
  
  &lt;html&gt;
  &lt;div id="bo"&gt;&lt;?php echo $source;?&gt;&lt;/div&gt;
  &lt;form action="altupload.php" method="post"&gt;
  &lt;input type="text" name="source"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But all I get is:</p>
  
  <pre><code>&lt;html&gt;&lt;div id="bo"&gt;&lt;iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/tZa5hyb0_wA\" frameborder=\"0\" allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;`
  
  &lt;html&gt;
  &lt;form action="altupload.php" method="post"&gt;
  &lt;input type="text" name="source"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Can anyone recommend some other ways to do it? Thanks</p>