Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. require "vendor/autoload.php";
  3.  
  4. $app = new Slim\App();
  5. $app->request->post("/",function(){
  6.  
  7. require_once("include/conecta.php");
  8.  
  9. if(isset($_POST)){
  10. $nome = $_POST['nome'];
  11. $email = $_POST['email'];
  12. $senha = $_POST['senha'];
  13.  
  14. $query = "INSERT INTO teste (nome, email, senha) VALUES ('$nome', '$email', '$senha')";
  15. $conn->query($query);
  16. }
  17.  
  18. });
  19.  
  20. $app->run();
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement