Ver Mensaje Individual
  #8 (permalink)  
Antiguo 27/10/2009, 20:01
Avatar de dbspace
dbspace
 
Fecha de Ingreso: octubre-2009
Mensajes: 6
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: Consulta comparar fecha en un formulario php y javascript

que tal amigos....

Mira yo tengo una forma mas sencilla de comprar 2 fechas.... con php y java........ mi pregunta es.... COMO PUEDO BLOQUEAR EL INSERT???? SI ENTRA AL PRIMER IF????....

Intente redireccionar y con un alert... y si lo hace pero si mete el registro :(

Alguien ayudeme

$fecha1 = strtotime ($fecha);
$fecha2 = strtotime($fechat);

if($fecha1 > $fecha2){

?>

<script>


alert("pon bien la fecha");
document.location.href='localhost/entregable.php';


</script>

<?


}



else{
echo 'BIEN';
}


GRACIAS