El calendario lo he cogido de aqui http://www.sectorweb.net/2007/05/07/...n-formularios/ por si quereis hecharle un vistazo.
A continuacion os enseño codigo:
calendario.html <--- aqui muestro el area del calendario
Código PHP:
   <html>
<head>
<script language='javascript' src="popcalendar.js"></script> 
</head>
<body>
        <center> 
         <form name="form1" method="post" action="procesa.php">
           Calendario: <input name="fecha" type="text" id="dateArrival" onClick="popUpCalendar(this, form1.dateArrival, 'dd-mm-yyyy');" size="10"><br>
           <input type="submit" value="Enviar">
        </form>
          </center>
      
</html> 
   Código PHP:
   <?php
 
$fecha=$_POST['fecha'];
 
$fechaExplode = explode("-", $_POST["fecha"]);
$fechaParaInsertar = date("Y-m-d", mktime(0,0,0,$fechaExplode[1], $fechaExplode[0], $fechaExplode[2]));
 
echo $fechaParaInsertar;
 
?>    
 
