Ayuda por favor no me llegan los datos del formulario a la base de datos..
aqui el codigo:
<?php
include("conexion.php");
if(isset($_POST['registro']))
{
if(($_POST['nick'] != '') && ($_POST['pass'] != '') && ($_POST['pais'] != '') && ($_POST['nume'] != '') && ($_POST['equi'] != '') && ($_POST['mail'] != ''))
{
if($_POST['pass'] == $_POST['confpass'])
{
$nick = $_POST['nick'];
$pass = md5($_POST['pass']);
$mail = $_POST['mail'];
$pais = $_POST['pais'];
$nume = $_POST['nume'];
$equi = $_POST['equi'];
$resultado = mysql_query("SELECT nick, mail, pais, nume, equi FROM pruebas WHERE (nick = '$nick') OR (mail = '$mail') OR (pais = '$pais') OR (nume = '$nume') OR (equi = '$equi')");
$fila = mysql_fetch_array($resultado);
if($fila['nick'] == $nick)
{
echo "El nick esta en uso";
}
elseif($fila['mail'] == $mail)
{
echo "El mail esta en uso";
}
else
{
if(!preg_match("/^[@]$/i" , $mail)){
$codigo= uniqid();
mysql_query("insert into pruebas(nick,pass,mail,pais,nume,equi,codigo,estado) values ('$nick','$pass','$mail','$pais','$nume','$equi','$codigo',0)");
echo 'Los datos han sido enviados correctamente';
}
else
echo "Mail no valido";
}
}
else
{
echo 'Las contraseñas no coinciden';
}
}
else
{
echo 'Debera rellenar todos los campos';
}
}
if($_SESSION['logeado'] == true){
echo "Usted esta logeado";
}
else{
?>
<table id="" class="telefonia" border="1">
<tr><th><form method="post" action="/registro/">
<p><cort>Nombre o Nick</cort><br><br>
<input type="text" class="put" name="nick" value="<?php echo $_POST['nick'];?>"></p>
<p><cort>Email</cort><br><br><br>
<input type="text" class="put" name="mail" value="<?php echo $_POST['mail'];?>"></p>
<p><cort>Contraseña</cort><br><br>
<input type="password" class="put" name="pass"></p>
<p><cort>Confirmar Contraseña</cort><br><br>
<input type="password" class="put" name="confpass"></p>
<p><cort>Nro. de celular:</cort><br><br>
<input type="text" class="put" name="nume"></p>
<p><cort>País</cort><br><br>
<select class="ecth" name="pais"></p>
<option selected="" value="--">-Seleccionar-</option>
<option value="AR">Argentina (+54)</option>
<option value="BO">Bolivia (+591)</option>
<option value="BR">Brasil (+55)</option>
<option value="CL">Chile (+56)</option>
<option value="CO">Colombia (+57)</option>
<option value="CR">Costa Rica (+506)</option>
<option value="CU">Cuba (+53)</option>
<option value="EC">Ecuador (+593)</option>
<option value="SV">El Salvador (+503)</option>
<option value="ES">España (+34)</option>
<option value="US">Estados Unidos (+1)</option>
<option value="GT">Guatemala (+502)</option>
<option value="HT">Haiti (+509)</option>
<option value="HN">Honduras (+504)</option>
<option value="MX">México (+52)</option>
<option value="NI">Nicaragua (+505)</option>
<option value="PA">Panamá (+507)</option>
<option value="PY">Paraguay (+595)</option>
<option value="PE">Peru (+51)</option>
<option value="PR">Puerto Rico (+1)</option>
<option value="DO">Rep. Dominicana (+1)</option>
<option value="UY">Uruguay (+598)</option>
<option value="VE">Venezuela (+58)</option>
<option value="OT">[Otro] (+1)</option>
</select></p>
<p><cort>Modelo De Tu Celular</cort><br><br>
<select class="ecth" name="equi"></p>
<option selected="" value="--">-Seleccionar-</option>
<option value="acer-allegro">Acer - Allegro</option>
<option value="acerbetouch">Acer - BeTouch E120</option>
</select></p>
<input type="submit" value="enviar" name="registro">
</form></th>
</tr>
</table>
<?php
}
?>