title: PHP variable as input value
body: <p>I'm trying to make a voting system. The form below is located in an <strong>echo</strong>. So I want the  $entree_id to be filled in as the value of the hidden field and stored in a database when someone clicks on the submit button. But whenever I try it, the row stays empty.</p>
  
  <p>This is the database output:</p>
  
  <p><code>$entree_id     = $row['entree_id'];</code></p>
  
  <p>And this is in the echo:</p>
  
  <p><code>&lt;form action='/' method='post'&gt;&lt;input type='hidden' name='entree_id' value='" . $entree_id . "'&gt;&lt;input type='submit' class='button'&gt;&lt;/form&gt;&lt;p&gt;</code></p>
  
  <p>I have also tried something like this:</p>
  
  <p><code>&lt;form action='/' method='post'&gt;&lt;input type='hidden' name='entree_id' value='&lt;?php print $entree_id ?&gt;'&gt;&lt;input type='submit' class='button'&gt;&lt;/form&gt;&lt;p&gt;</code></p>
  
  <p>Why don't I get the value of $entree_id?</p>