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 textarea
value.
My code is like this -
<?php
$action = $_REQUEST['action'];
$text =$_GET['text'];
if(!$action){
$device=file("abc.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$lines =implode("
",$device);
echo "<form method='post' action='config.php'>";
echo "<textarea name='text' cols='40' rows='15'>$lines</textarea>";
echo '<td> <input type="submit" name="submit" value="Submit"> </td></form>';
}
if($action == "submit" ){
$ids = explode("
", str_replace("", "", $input));
echo $ids ;
}
?>