title: Using PHP Form to Embed Video
body: <p>I want to use a PHP form to embed a video onto a web page. Not sure why this isn't working as the page source has the embed code but nothing is showing up on the page. Here's the PHP I'm using:</p>
  
  <p>test.php</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  
  &lt;form action="" method="post"&gt;
  Embed Code: &lt;input type="text" name="embedCode" /&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  
  &lt;?php echo $_POST['embedCode']; ?&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>The 'embedCode' should be able to handle any generic video embedding code such as  or  and shouldn't be specific to YouTube or anything else.</p>