title: Wikipedia Search: input txt line into <form> php html
body: <p>I need to input the line in a .txt file into the value of the search variable in a form.
  Here's mi html code:</p>
  
  <pre><code>    &lt;form action="http://www.wikipedia.org/search-redirect.php" method="get" target="_blank"&gt;
      &lt;input type="hidden" name="search" value=""/&gt;  
      &lt;input type="hidden" name="language" value="en" /&gt;
      &lt;input type="image" src="/img/masinfo.png" width="218" height="40" alt="mas informacion"  name="go" value="Mas informacion del artista" /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>On the other hand i have this php code to extrat the line from the .txt file:</p>
  
  <pre><code>&lt;?php
  $file = "file.txt";
  $f = fopen($file, "r");
  while ( $line = fgets($f, 1000) ) {
    $line = preg_replace("/^example.*/", "example", $line);
    $line = preg_replace("/0[0-9]{2}/", "", $line);
   print $line;
  
  }
  ?&gt;
  </code></pre>
  
  <p>Is there a way to input this line into the search value of the form?</p>
  
  <p>Edit: the line is something like</p>
  
  <pre><code> 124 hello world - universe
  </code></pre>