I get the variable in echo $id; and the hyperlink can pass the value.
In third line's id=$id it is not displaying the value It is directly displaying $id.
$id= $_GET['id'];
echo $id;
echo '<input type="text" value="localhost/anews/singleeng.php?id=$id" id="myInput">
echo "<a href='generateeng.php?id=$id'> Link </a>";