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

189
Vistas
how to get the fetch and send it to my register.php? that will put in mysql database

I have this code that captures the values of my API but I need these codes to be sent to the backend so that every time I open this script it sends it to the database



<script>
  const fpPromise = import('https://fpcdn.io/v3/Xhk2W83F3F8jStNRz99k')
    .then(FingerprintJS => FingerprintJS.load());



fpPromise
  .then(fp => fp.get({ extendedResult: true }))
  .then(result => {
    fetch("http://192.168.0.15/Visitantes_Verifica%C3%A7%C3%A3o/info.php", { method: "POST", body: JSON.stringify(result) });
  });


</script>

I'm trying to use this code to capture the values but it's not working

This is my info.php

<?php


header('Content-Type: application/json');


$dadosVisitante = json_decode(file_get_contents("php://input"), true);
//some code
echo json_encode($dadosVisitante);


?>

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