Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/05/2010, 15:26
bkolores
 
Fecha de Ingreso: mayo-2008
Ubicación: Santiago-Chile
Mensajes: 253
Antigüedad: 16 años
Puntos: 1
Problema con sistema de registro

amigos, estoy creando un sistema de registro y la verdad no logro encontrar mi solucion se que es con mysql_fetch_array pero por algun motivo no me funciona :P llevo varias horas programando puede ser un causante favor ayuda (PD soy novato también).

Código PHP:
<?php
// conectar mysql
include("conexion.php");
// Recoger Variables
$usuario $_POST['usuario'];
$clave $_POST['clave'];
$reclave $_POST['reclave'];
$email $_POST['email'];
$reemail $_POST['reemail'];

// Comparar Similitud
if($clave != $reclave) {
    echo 
"<script language=\"JavaScript\">alert(\"Lo Sentimos, Las Claves Ingresadas no Coinciden\");</script>
    <meta http-equiv=\"Refresh\" content=\"0; url=../registrar.php\">"
;
}
if(
$email != $reemail) {
    echo 
"<script language=\"JavaScript\">alert(\"Lo Sentimos, Los E-mail Ingresados no Coinciden\");</script>
    <meta http-equiv=\"Refresh\" content=\"0; url=../registrar.php\">"
;
}

// Comparar si usuario existe en base de datos
// AQUI MI PROBLEMA