I want to get the input in blur, but I don't know if it's possible to do this in php, so im doing in javascript to convert in php after, but im not getting
<!DOCTYPE html>
<html>
<body>
<h4>
    Change the text of the text field
    ,and then click the button.
</h4>
<label for="domTextElement">Name: </label>
<input type="text" onclick="getValueInput()" onblur="getValueInput()" id="domTextElement">
<form action="teste2.php" method="GET">
    <p <?php //$_SESSION['id'] = echo "<script>document.getElementById('valueInput').innerHTML</script>"; 
        ?> id="valueInput"></p>
</form>
<script type="text/javascript">
    const getValueInput = () => {
        let inputValue = document.getElementById("domTextElement").value;
        document.getElementById("valueInput").innerHTML = inputValue;
    }
</script>
<?php
$id = $_GET['valueInput'];
echo $id;
?>
</body>
</html>
