Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <?PHP
  2. $host = "localhost";
  3. $user = "root";
  4. $pass = "";
  5. $banco = "cadastrocli"
  6. $conexao = mysql_connect($host,$user,$pass) or die(mysql_error());
  7. mysql_select_db($banco) or die(mysql_error());
  8.  
  9.  
  10. $idCad = $_POST ['idCad'];
  11. $nome = $_POST ['Nome'];
  12. $email = $_POST ['Email'];
  13. $senha = $_POST ['Senha'];
  14. $confirmar = $_POST ['Confirmar'];
  15. $telefone = $_POST ['Telefone'];
  16. $celular = $_POST ['Celular'];
  17. $nascimento = $_POST ['Nascimento'];
  18. $sexo = $_POST ['Sexo'];
  19. $bairro = $_POST ['Bairro'];
  20. $cidade = $_POST ['Cidade'];
  21. $estado = $_POST ['Estado'];
  22.  
  23. $sql = mysql_query "(INSERT INTO cadastrocli (idCad, Nome, Email, Senha, Confirmar, Telefone, Celular, Nascimento, Sexo, Bairro, Cidade, Estado)
  24. VALUES ('$idCad', '$nome', '$email', '$senha', '$confirmar', '$telefone', '$celular', '$nascimento', '$sexo', '$bairro', '$cidade', '$estado');"
  25. echo"Cadastro efetuado com sucesso;"
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement