Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/02/2012, 03:10
nobo
 
Fecha de Ingreso: diciembre-2011
Mensajes: 151
Antigüedad: 12 años, 4 meses
Puntos: 1
formulario de registro no hace nada

Pues eso ingreso todos los datos en mi formulario de registro y no hace nada... Vuelve a cargar el formulario de registro vacio... Ni ingresa los datos en la base de datos ni nada, ni da error, ni nada de nada...

Pongo el codigo:
Código PHP:
Ver original
  1. if (isset($_POST) && isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == 'http://localhost/zulo/alta_usuario.php' && !empty($_POST)) {
  2.    
  3. $pass = $_POST["strPassword"];
  4. $password = $_POST["password"];
  5. $email = $_POST["strEmail"];
  6. $mail = $_POST["mail"];
  7. $telefono = $_POST["intNtelf"];
  8. $telefono2 = $_POST["telefono"];
  9.  
  10.       if($pass!=$password) {
  11.          echo "Las contraseñas no coinciden"; }
  12.             if($email!=$mail) {
  13.          echo "El email no coincide"; }
  14.      
  15.          if($telefono!=$telefono2) {
  16.          echo "Los telefonos no coinciden";
  17.       }else {
  18.           $checkuser = comprobaruser($_POST["strNick"]);
  19.          if ($checkuser !=0) {
  20.              echo "El usuario ya existe"; }
  21.              $checkmail = comprobarmail($_POST["strEmail"]);
  22.              if ($checkmail !=0){
  23.                  echo "El mail" .$email. "ya existe"; }
  24.      
  25.       }
  26. }else {
  27.  
  28. if (isset($_POST["form1"])) {
  29.   $insertSQL = sprintf("INSERT INTO tblusuario (strNombre, strEmail, intActivo, strPassword, strDireccion, strNick, intCpostal, strProvincia, strPoblacion, intNtelf) VALUES (%s, %s, %s, %s, %s)",
  30.                        GetSQLValueString($_POST['strNombre'], "text"),
  31.                        GetSQLValueString($_POST['strEmail'], "text"),
  32.                        GetSQLValueString($_POST['intActivo'], "int"),
  33.                        GetSQLValueString($_POST['strPassword'], "text"),
  34.                        GetSQLValueString($_POST['strDireccion'], "text"),
  35.                        GetSQLValueString($_POST['strNick'], "text"),
  36.                        GetSQLValueString($_POST['intCpostal'], "int"),
  37.                        GetSQLValueString($_POST['strProvincia'], "text"),
  38.                        GetSQLValueString($_POST['strPoblacion'], "text"),
  39.                        GetSQLValueString($_POST['intNtelf'], "int"));
  40.  
  41.   mysql_select_db($database_conexionzulo, $conexionzulo);}}
  42. ?>