Location: PHPKode > scripts > Easy Weekly Calendar > easy-weekly-calendar/Example_2.php
<html>
<head>
<title>Example of a weekly schedule</title>

<?php

//ENVIAMOS A LA BASE
if ($_POST["send"]) {

$fecha = $_POST["programDay"];
list ($hora, $dia, $mes, $ano) = split('&', $fecha);

echo "<p>Selected on ".$dia."/".$mes."/".$ano." at ".$hora.":00</p>";

} 


if ($_GET["dia"] && $_GET["mes"] && $_GET["ano"]) {

$dia = $_GET["dia"];
$mes = $_GET["mes"];
$ano = $_GET["ano"];
} else {
$dia = date ("d");
$mes = date ("n");
$ano = date ("Y");
}


//include the WeeklyCalClass and create the object !!
include ("EasyWeeklyCalClass.php");
$calendar = new EasyWeeklyCalClass ($dia, $mes, $ano);

echo "<form method='post'>
<p><input type='submit' name='send' value='send' /></p>";
echo $calendar->showCalendar ();
echo "<p><input type='submit' name='send' value='send' /></p>
</form>";



?>

</body>
</html>
Return current item: Easy Weekly Calendar