Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <?php
- $host = "localhost";
- $user = "root";
- $pass = "12345";
- $banco = "cadastro";
- $conexao = mysql_connect ($host, $user, $pass) or die (mysql_error());
- mysql_select_db ($banco) or die (mysql_error());
- echo "<center><h1>Cadastro efetuado com sucesso!</h1></center>";
- ?>
- <?php
- $nome = $_POST ['nome'];
- $email = $_POST ['email'];
- $sexo = $_POST ['sexo'];
- $ddd = $_POST ['ddd'];
- $tel = $_POST ['telefone'];
- $endereco = $_POST ['endereco'];
- $cidade = $_POST ['cidade'];
- $estado = $_POST ['estado'];
- $bairro = $_POST ['bairro'];
- $pais = $_POST ['pais'];
- $login = $_POST ['login'];
- $senha = $_POST ['senha'];
- $news = $_POST ['news'];
- $sql = mysql_query ("INSERT INTO painel (nome, email, ddd, tel, endereco, cidade, estado, bairro, pais, login, senha, news)
- VALUES ('$nome', '$email', '$sexo', '$ddd', '$tel', '$endereco', '$cidade', '$estado', '$bairro', '$pais', '$login', '$senha', '$news' )");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement