title: php pass data to html form
body: <p>I have php file that contains variables:</p>
  
  <pre><code>$t1 =  $_POST['t1'];
  $t2 =  $_POST['t2'];
  </code></pre>
  
  <p>and I need to pass these variables into the respective html form fields:</p>
  
  <pre><code>&lt;input id="field_1" type="hidden" name="field_1" /&gt;
  &lt;input id="field_2" type="hidden" name="field_2" /&gt;
  </code></pre>
  
  <p>form is located in different page than php file with variables. it's url is "form.php"</p>
  
  <p>I guess I need to create php post command in my php file that redirects to url "form.php" and loads $t1 and $t2 into respective form fields "field_1" and "field_2"?</p>
  
  <p>Trying around but can not find right solution..Any ideas appreciated 
  Brgds,
  Raivis</p>