title: Passing a php variable from one form to another using $_POST
body: <p>I am fairly new to PHP and I am having real trouble trying to make a variable used in one php page available to another using POST.  Here is a test file that I have been using.  All it does is pass the string in geronimo2, not the contents of the variable. Please could someone help point out how I have been dozy. Thanks.</p>
  
  <pre><code>&lt;?php
  $trying="just a string";
  echo $trying;
  ?&gt;
  
  &lt;form name="input" action="test2.php" method="post"&gt;
  &lt;input type="text" name="geronimo2" style="display:none" value="$trying"&gt;&lt;/input&gt;
  &lt;p align="center"&gt;
    &lt;input type="submit" name="submit" value="Submit My Information" /&gt;
  &lt;/input&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>