Olá senhores, estou com um problema, meu php não esta inserindo dados em meu mysql. Que será que estou fazendo de errado?
Colunas em meu mysql
nome da tabela atletas
nome, email, rg, cpf, cidade, telefone, senha, consenha e id
código HTML.
<html>
<head>
<title>Sistema de castro Atleta</title>
</head>
<body>
<form nome="signup" method="post" action="cadastrando.php">
Nome Completo: <input type="text" nome="nome"/><br/><br/>
E_mail: <input type="text" nome="email"/><br/><br/>
RG: <input type="text" nome="rg"/><br/><br/>
CPF: <input type="text" nome="cpf"/><br/><br/>
Cidabe: <input type="text" nome="cidade"/><br/><br/>
Telefone: <input type="text" nome="telefone"/><br/><br/>
Senha: <input type="password" nome="senha"/><br/><br/>
Confirme a Senha: <input type="password" nome="consenha"/><br/><br/>
<input type="submit" value="Enviar"/>
</form>
</body>
</html>
CÓDIGO PHP
<html>
<head>
<title>Cadastrando...</title>
</head>
<body>
<?php
error_reporting (E_ALL & ~ E_NOTICE & ~ E_DEPRECATED);
$host = "localhost";
$user = "root";
$pass = "";
$banco = "cadastro";
$conexao = mysql_connect ($host, $user, $pass) or die (mysql_erro());
mysql_select_db($banco) or die(mysql_error());
?>
<?php
$nome = $_POST['nome'];
$email = $_POST['email'];
$rg = $_POST['rg'];
$cpf = $_POST['cpf'];
$cidade = $_POST['cidade'];
$telefone = $_POST['telefone'];
$senha = $_POST['senha'];
$consenha = $_POST['consenha'];
$sql = mysql_query("INSERT INTO atletas(nome, email, rg, cpf, cidade, telefone, senha, consenha)
VALUES('".$nome."', '$email', '$rg', '$cpf', '$cidade', '$telefone' ,'$senha', '$consenha')");
echo "<center><h1> Cadastro Efetuado com sucesso!</h1></center>";
?>
</body>
</html>