title: passing parameters to php in a form?
body: <p>I have the basic html form echoed through php:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;?php 
  if (isset($_GET["pk"]))
   { $pk = $_GET["pk"];}
  echo '&lt;form action="up.php" method="post"
  enctype="multipart/form-data"&gt;
  &lt;label for="file"&gt;Filename:&lt;/label&gt;
  &lt;input type="file" name="file" id="file" /&gt; 
  &lt;br /&gt;
  &lt;input type="submit" name="submit" value="Submit" /&gt;
  &lt;/form&gt;';
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I would like to pass the value of pk to up.php</p>
  
  <p>Modifying action="up.php?pk=$pk" did not work.</p>