0
Notice: Undefined index: name in C: xampp htdocs test cadastrando.php on line 10
and so goes with all the POSTS.....
the strange thing is that when I change from Portuguese to English, it does not give any error. Type, if change==> $name=$_POST9('name'); sure. But when I put in Portugese of Error. Remembering that in the database is in Portuguese and the part of the forms are in agreement, what can be? Follows code below:
<html><title>Cadastre-se</title>
<meta charset="UNICODE"/>
<link rel="stylesheet" type="text/css" href="CSS/tema_Principal.css">
<body>
<hr>
<form name="signup" method="POST" action="cadastrando.php"/>
NOME: <input type="text" name="nome"/><br><br>
SOBRENOME: <input type="text" name="sobrenome"/><br><br>
E-MAIL: <input type="text" name="email"/><br><br>
ESTADO <input type="text" name="estado"/><br><br>
CIDADE <input type="text" name="cidade"/><br><br>
País <input type="text" name="pais"/><br><br>
SENHA: <input type="password" name="senha"/><br><br>
<input type="submit" value="Cadastrar" name="submit">
<hr>
</form>
</body>
</html>
PARTE DO SISTEMA DE CADASTRO
<?php
$host ="localhost";
$user="root";
$pass="";
$db_base="banco_de_dados";
$conectar = mysql_connect($host, $user, $pass) or die (mysql_error());
mysql_select_db($db_base) or die(mysql_error());
$nome= $_POST['nome'];
$sobrenome= $_POST['sobrenome'];
$senha= $_POST['senha'];
$email= $_POST['email'];
$cidade= $_POST['cidade'];
$estado= $_POST['estado'];
$pais= $_POST['pais'];
$sql = mysql_query("INSERT INTO Usuarios(nome, senha, email, sobrenome, cidade, estado, pais) VALUES('$nome','$senha', '$email','$sobrenome', '$cidade', '$estado', '$pais')");
?>
<html>
<title>Cadastrando...</title>
</html>
Paste the PHP code and Whole Form, for us to analyze...
– Sr. André Baill
Why did you put $_POST9 in the question? There is no global $_POST9.
– Miguel Batista