Created
September 6, 2019 23:10
-
-
Save parzibyte/ca70bfdd09513d72c4955f5a61d4fc0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$datos = json_decode(file_get_contents("php://input")); | |
// Aquí podemos procesar los datos | |
$nombre = $datos->nombre; | |
$correo = $datos->correo; | |
$edad = $datos->edad; | |
file_put_contents("datos.txt", "Nombre: $nombre, Correo: $correo, Edad: $edad\n", FILE_APPEND); | |
echo json_encode("Formulario enviado"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment