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 originalif (isset($_POST) && isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == 'http://localhost/zulo/alta_usuario.php' && !empty($_POST)) {
$pass = $_POST["strPassword"];
$password = $_POST["password"];
$email = $_POST["strEmail"];
$mail = $_POST["mail"];
$telefono = $_POST["intNtelf"];
$telefono2 = $_POST["telefono"];
if($pass!=$password) {
echo "Las contraseñas no coinciden"; }
if($email!=$mail) {
echo "El email no coincide"; }
if($telefono!=$telefono2) {
echo "Los telefonos no coinciden";
}else {
$checkuser = comprobaruser($_POST["strNick"]);
if ($checkuser !=0) {
echo "El usuario ya existe"; }
$checkmail = comprobarmail($_POST["strEmail"]);
if ($checkmail !=0){
echo "El mail" .$email. "ya existe"; }
}
}else {
if (isset($_POST["form1"])) { $insertSQL = sprintf("INSERT INTO tblusuario (strNombre, strEmail, intActivo, strPassword, strDireccion, strNick, intCpostal, strProvincia, strPoblacion, intNtelf) VALUES (%s, %s, %s, %s, %s)", GetSQLValueString($_POST['strNombre'], "text"),
GetSQLValueString($_POST['strEmail'], "text"),
GetSQLValueString($_POST['intActivo'], "int"),
GetSQLValueString($_POST['strPassword'], "text"),
GetSQLValueString($_POST['strDireccion'], "text"),
GetSQLValueString($_POST['strNick'], "text"),
GetSQLValueString($_POST['intCpostal'], "int"),
GetSQLValueString($_POST['strProvincia'], "text"),
GetSQLValueString($_POST['strPoblacion'], "text"),
GetSQLValueString($_POST['intNtelf'], "int"));
?>