title: Echo Submit Button in PHP
body: <p>I am trying to echo a submit form in my php code:</p>
  
  <p>I am trying the following:</p>
  
  <pre><code>// Display results
  foreach ($media-&gt;data as $data) {
  echo "&lt;a href=\"{$data-&gt;link}\"&lt;/a&gt;";
  echo "&lt;h4&gt;Photo by: {$data-&gt;user-&gt;username}&lt;/h6&gt;";
  echo $pictureImage = "&lt;img src=\"{$data-&gt;images-&gt;thumbnail-&gt;url}\"&gt;";
  echo "&lt;h5&gt;Like Count for Photo: {$data-&gt;likes-&gt;count}&lt;/h5&gt;";
  echo "&lt;form&gt;";
  echo "&lt;form action='tag.php' method='post'&gt;";
  echo "&lt;input type='submit' name='submit'&gt;";
  echo "&lt;/form&gt;";
  
  }
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>if(isset($_POST['submit'])) {
  echo "hello";
  }
  </code></pre>
  
  <p>This doesn't seem to echo "hello";</p>
  
  <p>Any help would be appreciated</p>