-
-
Save anonymous/4140524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function checkAno($AnoProd) | |
{ | |
$reg = '/([1-9])([0-9]*)/'; | |
return preg_match($reg, $AnoProd); | |
} | |
function checkEmail($Correo) | |
{ | |
$reg = '#^(((([a-z\d][\.\-\+_]?)*)[a-z0-9])+)\@(((([a-z\d][\.\-_]?){0,62})[a-z\d])+)\.([a-z\d]{2,6})$#i'; | |
return preg_match($reg, $Correo); | |
} | |
if(!checkAno("$AnoProd")) | |
{ | |
if(intval($MesProd)>0 && intval($MesProd)<13) | |
{ | |
echo '2'; | |
if(intval($DiaProd)>0 && intval($DiaProd)<32) | |
{ | |
echo '3'; | |
if(!checkAno("$AnoNac")) | |
{ | |
echo '4'; | |
if(intval($MesNac)>0 && intval($MesNac)<13) | |
{ | |
echo '5'; | |
if(intval($DiaNac)>0 && intval($DiaNac)<32) | |
{ | |
if(intval($Tel)>0) | |
{ | |
echo '6'; | |
if(intval($TelMovil)>0) | |
{ | |
echo '7'; | |
if(!checkEmail("$Correo")) | |
{ | |
if(isset($_POST['NombrePelicula']) && !empty($_POST['NombrePelicula']) && | |
isset($_POST['Duracion']) && !empty($_POST['Duracion'])&& | |
isset($_POST['Nacionalidad']) && !empty($_POST['Nacionalidad'])&& | |
isset($_POST['Idioma']) && !empty($_POST['Idioma'])&& | |
isset($_POST['LogLine']) && !empty($_POST['LogLine'])&& | |
isset($_POST['Sinopsis']) && !empty($_POST['Sinopsis'])&& | |
isset($_POST['NombreContacto']) && !empty($_POST['NombreContacto'])&& | |
isset($_POST['ApellidoContacto']) && !empty($_POST['ApellidoContacto'])&& | |
isset($_POST['NacContacto']) && !empty($_POST['NacContacto'])&& | |
isset($_POST['formIncs']) && !empty($_POST['formIncs'])&& | |
isset($_POST['WebSite']) && !empty($_POST['WebSite'])) | |
{ | |
$a= $_POST['NombrePelicula']; | |
$b= $_POST['Duracion']; | |
$c= $_POST['Seleccion']; | |
$d= $_POST['Nacionalidad']; | |
$e= $_POST['Idioma']; | |
$f= $_POST['MesProd']; | |
$g= $_POST['DiaProd']; | |
$h= $_POST['AnoProd']; | |
$i= $_POST['EstrenoCbia']; | |
$j= $_POST['FormatoExh']; | |
$k= $_POST['Web']; | |
$l=$_POST['LogLine']; | |
$m=$_POST['Sinopsis']; | |
$n=$_POST['Trayectoria']; | |
$o=$_POST['NombreContacto']; | |
$p=$_POST['ApellidoContacto']; | |
$q=$_POST['Genero']; | |
$r= $_POST['MesNac']; | |
$s= $_POST['DiaNac']; | |
$t= $_POST['AnoNac']; | |
$u= $_POST['NacContacto']; | |
$v= $_POST['Tel']; | |
$w= $_POST['TelMovil']; | |
$x= $_POST['Correo']; | |
$y= $_POST['WebSite']; | |
$mensaje =$a." ".$b." ".$c." ".$d." ".$e." ".$f." ".$g." ".$h." ".$i." ".$j." ".$k." ".$l." ".$m." ".$n." ".$o." ".$p." ".$q." ".$r." ".$s." ".$t." ".$u." ".$v." ".$w." ".$x." ".$y; | |
$destino = "[email protected]"; | |
$asunto = "Formulario FICBAQ"; | |
mail($destino,$asunto,$mensaje); | |
echo 'Se ha enviado el formulario correctamete'; | |
} | |
else | |
{ | |
echo "Error al enviar formulario"; | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment