Advertisement
Guest User

Untitled

a guest
Apr 1st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Cadastrando...</title>
  4. </head>
  5. <body>
  6. <?php
  7. $host = "localhost";
  8. $user = "root";
  9. $pass = "";
  10. $banco = "cadastro";
  11. $conexao = @mysql_connect($host, $user, $pass) or die(mysql_error());
  12. mysql_select_db($banco) or die(mysql_error());
  13.  
  14. ?>
  15. <?php
  16. $nome=$_POST['nome'];
  17. $sobrenome=$_POST['sobrenome];
  18. $email=$_POST['email'];
  19. $email1=$POST['email1'];
  20. $senha=$POST['senha'];
  21. $senha1=$POST['senha1'];
  22. $perfil=$POST['perfil'];
  23. $sql = mysql_query("INSERT INTO usuarios(nome, sobrenome, email, email1, senha, senha1, perfil) VALUES('$nome', '$sobrenome', '$email', '$email1', '$senha', '$senha1', '$perfil')");
  24. ?>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement