Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <tittle>cadastrando<tittle/>
- <head/>
- <body>
- <?php
- $host = "localhost";
- $user = "root";
- $pass = "base7";
- $banco = "cadastro";
- $conexao = mysql_connect($host,$user,$pass) or die(mysql_error());
- mysql_select_db($banco) or die(mysql_error());
- ?>
- <?php
- $nome=$_POST['nome'];
- $senha=$_POST['senha'];
- $sql = mysql_query("INSERT INTO usuarios(nome,senha) VALUES ('$nome','$senha')");
- ?>
- <body/>
- <html/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement