Created
February 7, 2018 22:10
-
-
Save parzibyte/9d5148536d84cfcd35b4acc8d4659284 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 | |
$collector->post("/usuario", function(){ | |
$usuario = file_get_contents("php://input"); //Si es por AJAX | |
$usuario = $_POST["usuario"]; //Si es por un formulario, cosa no recomendable | |
//Aquí agregar la magia :) | |
}); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment