title: PHP - select and import text file data into textarea
body: <p>I did search but i could not find the answer. </p>
  
  <p>I want to have import button, from where the user will import text file from user computer and the data of text file should be visible in textarea. </p>
  
  <p>I have this code to show in textarea but don't know how to select and get data from user computer. </p>
  
  <pre><code>$data = file_get_contents('userfile.txt');
  echo '&lt;textarea&gt;', htmlspecialchars($data), '&lt;/textarea&gt;';
  </code></pre>
  
  <p>Thanks in advance. </p>
  
  <p>P.S. The file should not save on server rather it just get the data and show in textarea.</p>