Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Cadastrando</title>
- </head>
- <body>
- <?php
- $host = "localhost";
- $user = "root";
- $pass = "";
- $banco = "usuarios";
- $conexao = mysqli_connect($host, $user, $pass, $banco) or die(mysql_error());
- ?>
- <?php
- $nome=@$_POST['nome'];
- $sobrenome=@$_POST['sobrenome'];
- $nomecomp=($nome . " " . $sobrenome);
- $apelido=@$_POST['apelido'];
- $email=@$_POST['email'];
- $senha=@$_POST['senha'];
- $sexo=@$_POST['sexo'];
- $dia=@$_POST['datad'];
- $mes=@$_POST['datam'];
- $ano=@$_POST['ano'];
- $data=($dia."/".$mes."/".$ano);
- $cep=@$_POST['cep'];
- $telefone=@$_POST['telefonef'];
- $celular=@$_POST['telefonec'];
- $estado=@$_POST['estado'];
- $cidade=@$_POST['cidade'];
- $endereco=@$_POST['avenida'];
- $bairro=@$_POST['bairro'];
- $numero=@$_POST['numero'];
- $complemento=@$_POST['complemento'];
- $hash="%$&*(&%$&#*%$&*(&%$&#*%$&*(&%$&#*";
- $criptosenha = md5($hash . $senha);
- $acessouser = "0";
- $sql = mysqli_query($conexao, "INSERT INTO usuarios(nome, apelido, email, senha, sexo, data, cep, telefixo, telecel, estado, cidade, bairro, endereco, numero, complemento, acesso )
- VALUES('$nomecomp', '$apelido', '$email', '$criptosenha', '$sexo', '$data', '$cep', '$telefone', '$celular', '$estado', '$cidade', '$endereco', '$bairro', '$numero', '$complemento', '$acessouser')");
- header("location: login.php");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement