Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/09/2008, 14:26
gabrielaugusto
 
Fecha de Ingreso: septiembre-2008
Mensajes: 2
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Ayuda para modificar un codigo PHP

hola, tengo un problema con una PHP quiero hacer una diferencia entre fechas y nose como hacerlo,, hasta ahora este es lo que tengo me flata terminar , queria saber si alguien me puede dar una mano,,

<html>
<head>
<title> Diferencias de Fechas </title>
<meta http-equiv="content-tipe" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFF00">
<h2 aling="center"> Diferencia de Fechas </h2>
<p><br>
<?php if (empty($fecha1)||empty($fechas2))

?> <table width="100%" align="center" border="0"><tr><td>
<form action=<? echo $PHP_SELF;?> method="post">
<h3> Ingrese la Fecha 1 primero</h3><br>
fecha1:<input name="fecha1" type="text" value="<? echo $fecha1;?>"
size="11"><p>
<h3> Ingrese la Fecha 2 </h3><br>
fecha2:<input name="fecha2" type="text" value="<? echo $fecha2;?>"
size="11"><p>
<center><input type="submit" value="aceptar"></center>
</td></tr>
</table>
</form>

<? } else
{ ?><p><h2 aling="center">La Fecha 1 es:
<? echo $fecha1; ?></p><p><h2 aling="center">La Fecha 2 es:

<?echo $fecha2: ?></h2</p><p>
<form action="mostrardif.php" method="post">

Ingrese dia de fecha 1: <br>
<input name="d1" value=<? echo $d1; ?>"><br>

Ingrese dia de fecha 2: <br>
<input name="d2" value=<? echo $d2; ?>"><br>

Ingrese mes de fecha 1: <br>
<input name="m1" value=<? echo $m1; ?>"><br>

Ingrese mes de fecha 2: <br>
<input name="m2" value=<? echo $m2; ?>"><br>

Ingrese año de fecha 1: <br>
<input name="a1" value=<? echo $a1; ?>"><br>

Ingrese año de fecha 2: <br>
<input name="a2" value=<? echo $a2; ?>"><br>
<center> <input type="submit" value="aceptar"></center>

</form>

<?php } /* cerramos el else*/?>

</body>
</html>

no se por nada pero necesito una solucion URGENTE ja
se los voy a agradecer mucho!!!