Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/09/2013, 13:31
placks73
 
Fecha de Ingreso: mayo-2011
Mensajes: 15
Antigüedad: 12 años, 11 meses
Puntos: 0
Respuesta: cambiar formato fecha

Una pregunta, si este es el formulario:

<html>
<head>
<title>Hoja de Tiempo</title>
<body>
<form name="forma" action="pagina2.php" method="post">

<TR>
<TD>
<b><label for="fecini">Fecha Incial:</label></b>
</TD>
<TD>
<input type="text" id="datepicker" name="fechaini"/>
</TD>
</TR>
<TR>
<TD>
<b><label for="fecfin">Fecha Final:</label></b>
</TD>
<TD>
<input type="text" id="datepicker2" name="fechafin"/>
</TD>

</TR>

<br><br>
<input type="submit" value="Guardar">

</form>

<br>
</body>
</html>

Y este es el codigo que procesa los datos:

<html>
<head>
<title>Registro Hoja de Tiempo</title>
</head>
<body>
<?php
$conexion=mysql_connect("localhost","root","")
or die("Problemas en la conexion");
mysql_select_db("hoja_tiempo",$conexion) or
die("Problemas en la seleccion de la base de datos");

mysql_query("insert into hojas(fecha_inicial,fecha_final) values
('$_REQUEST[fechaini]','$_REQUEST[fechafin]')",


$conexion) or die("Problemas en el select".mysql_error());
mysql_close($conexion);

echo "El registro fue exitoso.";
?>
</body>
</html>


¿EN QUE PARTE PUEDO INCLUIR ESE CODIGO Y COMO LO DIFERENCIO QUE SEA LA FECHA INICIAL Y LA FECHA FINAL?