Código HTML:
Ver original
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="../src/css/jscal2.css" /> <link rel="stylesheet" type="text/css" href="../src/css/border-radius.css" /> <link rel="stylesheet" type="text/css" href="../src/css/steel/steel.css" /> </head> <body> <form action="4_process.php" method="POST"> <table> <tr> </tr> <tr> <input style="text-align: center" readonly="true" name="date" id="f_date" size="14" /> </tr> </table> <input type="submit" value="Enviar"/> </form> <script type="text/javascript"> function updateFields(cal) { var date = cal.selection.get(); if (date) { date = Calendar.intToDate(date); document.getElementById("f_date").value = Calendar.printDate(date, "%Y-%m-%d"); } }; Calendar.setup({ cont : "cont", onSelect : updateFields }); </script> </body> </html>
Código PHP:
Ver original
<html> <?php $fecha = $_POST["date"]; ?> <body> Bienvenido <?php echo $fecha; ?> </body> </html>