Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!