title: Displaying mysql data through hidden field values
body: <p>I am trying to display mysql records through hidden field values, but nothing displays.
  A little help!</p>
  
  <p>Here's the code;
  Html:</p>
  
  <pre><code>&lt;form name="form11" method="post" action="hpdata.php" enctype="multipart/form-data"&gt;
      &lt;input name="pro" id="pro" type="hidden"  value= "CMS" /&gt;
      &lt;input name="piror" id="piror" type="hidden"  value= "P1" /&gt;
      &lt;input name="stat" id="stat" type="hidden"  value= "In Progress" /&gt;
      &lt;input type="submit" name="submit" id="submit" class="groovybutton" value="..."&gt;              
    &lt;/form&gt;
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
      $project = $_POST["pro"];
      $pirority = $_POST["piror"];
      $status = $_POST["stat"];
      mysql_connect ("one", "two", "three");
      mysql_select_db ("wsms");
      $rest = mysql_query("SELECT * FROM sheet WHERE project='$project' AND 
          pirority='$pirority' AND status='$status'");
      while($row = mysql_fetch_array($rest))
      {
          echo $row['id'] . " " . $row['date']; echo "&lt;br&gt;";
      } 
  ?&gt; 
  </code></pre>