Created
September 24, 2019 17:33
-
-
Save parzibyte/51adeefa0b8aa5c95e1add5537ae2e35 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 | |
// Aquí podemos procesar los datos. Vienen dentro de $_POST | |
$nombre = $_POST["nombre"]; | |
$correo = $_POST["correo"]; | |
$edad = $_POST["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