I'm trying to call PHP variable into HTML input field. Please see below code.
<html>
<?php
$A_variable = $_GET['some text'];
echo "<script type='text/javascript'>";
echo "document.getElementById('A_input').value = ";$A_variable;
echo "</script>";
?>
<input type="text" id="A_input" name="A_input" placeholder="input" Readonly>
</html>
Please, advice am I trying in a proper way? Your assistance is highly appreciated.