title: How to get the text from textarea in php?
body: <p>I have seen many question are here, but I can not get the answer from that. so I have type the question again here. In a same page how can I get the <code>textarea</code> value.</p>
  
  <p>My code is like this -</p>
  
  <pre><code>&lt;?php
      $action = $_REQUEST['action'];
      $text =$_GET['text'];
      if(!$action){
          $device=file("abc.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
          $lines =implode("\n",$device);
          echo "&lt;form method='post' action='config.php'&gt;";
          echo "&lt;textarea name='text'  cols='40' rows='15'&gt;$lines&lt;/textarea&gt;";
          echo '&lt;td&gt; &lt;input type="submit" name="submit" value="Submit"&gt; &lt;/td&gt;&lt;/form&gt;';
      }
  
  
      if($action == "submit" ){
      $ids = explode("\n", str_replace("\r", "", $input));
          echo $ids ;
      }
  ?&gt;
  </code></pre>