Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 7, 2018 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/9d5148536d84cfcd35b4acc8d4659284 to your computer and use it in GitHub Desktop.
Save parzibyte/9d5148536d84cfcd35b4acc8d4659284 to your computer and use it in GitHub Desktop.
<?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