Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
Its possible convert variable js in php?

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>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda