• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

90
Views
buscar datos enviar enviar desde buscar

Quiero enviar datos desde fetch. Si envío por el método get, puedo averiguarlo, pero mire este ejemplo test.php

 <?php print_r(json_encode($_REQUEST));

guión.js

 const update = { title: 'A blog post by Kingsley', body: 'Brilliant post on fetch API', userId: 1, }; const options = { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(update), }; fetch('test.php', options) .then(data => { return data.json(); }) .then(post => { console.log(post); });

Pero busco una matriz vacía. ¿Por qué? ¿Cómo se pueden enviar y obtener datos mediante el método de obtención?

almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error