Advertisement
Guest User

Untitled

a guest
Feb 16th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. <html>
  3. <tittle>cadastrando<tittle/>
  4. <head/>
  5. <body>
  6. <?php
  7. $host = "localhost";
  8. $user = "root";
  9. $pass = "base7";
  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. <?php
  15. $nome=$_POST['nome'];
  16. $senha=$_POST['senha'];
  17. $sql = mysql_query("INSERT INTO usuarios(nome,senha) VALUES ('$nome','$senha')");
  18. ?>
  19. <body/>
  20. <html/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement