Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "vendor/autoload.php";
- $app = new Slim\App();
- $app->request->post("/",function(){
- require_once("include/conecta.php");
- if(isset($_POST)){
- $nome = $_POST['nome'];
- $email = $_POST['email'];
- $senha = $_POST['senha'];
- $query = "INSERT INTO teste (nome, email, senha) VALUES ('$nome', '$email', '$senha')";
- $conn->query($query);
- }
- });
- $app->run();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement